Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AUDIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ A check with `intentRef`/`workflowRef` points at the prose section that owns the
- **verbatim-tree** - every applicable `trees[]` declaration in [`spec/files.json`][files] owns its target tree. The audit reports missing files as letter findings, stale or modified bytes as drift, and extra files under a pruned target as drift. An unreadable or truncated repository tree is undecided and produces drift rather than a clean result.
- **repo-setup** - every required secret for the repo's publish mechanisms is configured, and no forbidden secret is present (per [`spec/secrets.json`][secrets]).
- **runtime-secrets** - a repo-scoped runtime-secrets directory, when present, is named `.secrets/` (dotted, not a bare `secrets/`), a single opaque credential file carries no extension, and every real secret file has a tracked `<name>.example` beside it cataloged in `.secrets/README.md`. N/A for a repo with no such directory. See [GOVERNANCE.md "Repo-Scoped Secrets"][governance-repo-scoped-secrets].
- **linter-parity** - one config per linter (`.markdownlint-cli2.jsonc`, `cspell.json`, ruff/pyright, editorconfig/csharpier, actionlint) drives the editor extension, the CLI, and CI, and CI runs each. That count is of the root config, so a nested `.markdownlint-cli2.jsonc` is not a second one. A local hook exists and runs at minimum the diff-scoped prose gate and the eol check via `hub-fetch-run.py`, or the hub's own local script copies for the hub repo itself (`parity.hooks`, intent). A repo with none wired is a defect, and one mid-convergence on the language-formatting half stays operational.
- **linter-parity** - one config per linter (`.markdownlint-cli2.jsonc`, `cspell.json`, ruff/pyright, editorconfig/csharpier, actionlint) drives the CLI, CI, and the editor extension where the workspace recommends one, and CI runs each. That count is of the root config, so a nested `.markdownlint-cli2.jsonc` is not a second one. A local hook exists and runs at minimum the diff-scoped prose gate and the eol check via `hub-fetch-run.py`, or the hub's own local script copies for the hub repo itself (`parity.hooks`, intent). A repo with none wired is a defect, and one mid-convergence on the language-formatting half stays operational.
- **recurring-violations** - comments concise and non-narrative, ASCII only (no em-dash, no smart quotes), US spelling, line endings per `.editorconfig`. These are frequent regressions, so this dimension is high priority and always runs, and each check is grep-able (see below).
- **readme-structure** - the README follows [`spec/readme-structure.md`][readme-structure] (applicable sections, in order). Mechanically checked against the declared model in [`spec/readme-sections.json`][readme-sections]: required sections present, declared sections in their relative order, `License` last, the shields each deliverable implies, the license shield in the closing License section, and the tagline and its mirrors. A heading the model does not name is dropped before the order comparison, so a repo-specific section is never a finding.

Expand Down
2 changes: 1 addition & 1 deletion GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Contributors commit to this repo with signed commits. The SSH-signing setup live
## Editor and Tasks

- **VS Code is the primary IDE, and the experience favors it.** Prefer VS Code tasks and launch configurations for building, running, and testing over ad-hoc shell scripts. A script is the fallback, not the default.
- The `.code-workspace` file carries the shared editor settings and the recommended-extension set. **All VS Code settings and extension recommendations live only here, never in a standalone `.vscode/settings.json` or `.vscode/extensions.json`** (`.vscode/` holds only `tasks.json` and `launch.json`). A **standard set** of extensions applies to every repo (markdownlint, cspell, editorconfig, markdown-all-in-one, better-todo-tree, github-actions, actionlint, shellcheck, claude-code); **language-specific** extensions are added per project (.NET: csdevkit, csharpier; Python: python, pylance, ruff, mypy; Docker: the Docker extension).
- The `.code-workspace` file carries the shared editor settings and the recommended-extension set. **All VS Code settings and extension recommendations live only here, never in a standalone `.vscode/settings.json` or `.vscode/extensions.json`** (`.vscode/` holds only `tasks.json` and `launch.json`). A **standard set** of extensions applies to every repo (markdownlint, cspell, editorconfig, markdown-all-in-one, better-todo-tree), kept to extensions that work without a separately installed tool. A repo shipping a language adds that language's **defaults** (.NET: csdevkit, csharpier. Python: python, pylance, ruff, mypy. Docker: the Docker extension). **Any repo can add further extensions** of its own on top of both.
- The Table of Contents is maintained by the Markdown All in One extension, and `markdown.extension.toc.levels` in the workspace sets which heading levels it includes (see the Markdown rules for the authoring convention and the `<!-- omit from toc -->` exclusion marker).
- **Agents: editing a `.code-workspace` that a VS Code window has loaded as its workspace can reload that window and drop an agent session running in it.** "Verification Discipline" holds the rule: leave that edit to the maintainer (a maintainer edit does not reload), and edit directly a workspace file that no window has loaded. Opening the folder rather than the workspace is what keeps a checkout's own file editable.

Expand Down
4 changes: 0 additions & 4 deletions ProjectTemplate.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@
},
"extensions": {
"recommendations": [
"anthropic.claude-code",
"arahata.linter-actionlint",
"charliermarsh.ruff",
"davidanson.vscode-markdownlint",
"editorconfig.editorconfig",
"fanaticpythoner.better-todo-tree",
"github.vscode-github-actions",
"ms-python.mypy-type-checker",
"ms-python.python",
"ms-python.vscode-pylance",
"streetsidesoftware.code-spell-checker",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
}
Expand Down
6 changes: 1 addition & 5 deletions catalog/snippets/devcontainer/dotnet/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,14 @@

"customizations": {
"vscode": {
// Mirror of `recommendations` in ProjectTemplate.code-workspace.
"extensions": [
"arahata.linter-actionlint",
"csharpier.csharpier-vscode",
"davidanson.vscode-markdownlint",
"editorconfig.editorconfig",
"github.vscode-github-actions",
"gruntfuggly.todo-tree",
"fanaticpythoner.better-todo-tree",
"ms-azuretools.vscode-docker",
"ms-dotnettools.csdevkit",
"streetsidesoftware.code-spell-checker",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
}
Expand Down
8 changes: 3 additions & 5 deletions catalog/snippets/devcontainer/python/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,16 @@

"customizations": {
"vscode": {
// Mirror of `recommendations` in ProjectTemplate.code-workspace.
"extensions": [
"arahata.linter-actionlint",
"charliermarsh.ruff",
"davidanson.vscode-markdownlint",
"editorconfig.editorconfig",
"github.vscode-github-actions",
"gruntfuggly.todo-tree",
"fanaticpythoner.better-todo-tree",
"ms-azuretools.vscode-docker",
"ms-python.mypy-type-checker",
"ms-python.python",
"ms-python.vscode-pylance",
"streetsidesoftware.code-spell-checker",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
}
Expand Down
10 changes: 4 additions & 6 deletions catalog/snippets/vscode/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VS Code Workspace Catalog

The shared `.code-workspace` set for the fleet: the standard extensions every repo recommends, the language-specific additions, and the settings that go with them. Each piece is a copyable JSON fragment in this directory. `base.jsonc` carries the standard set, and `dotnet.jsonc`, `python.jsonc`, and `docker.jsonc` carry the per-type additions. A repo's `<Repo>.code-workspace` composes `base.jsonc` plus the fragments for the languages and targets it ships. Discovered from the fleet's workspace files.
The shared `.code-workspace` set for the fleet: the standard extensions every repo recommends, the language-specific additions, and the settings that go with them. Each piece is a copyable JSON fragment in this directory. `base.jsonc` carries the standard set, and `dotnet.jsonc`, `python.jsonc`, and `docker.jsonc` carry the per-type additions. A repo's `<Repo>.code-workspace` composes `base.jsonc` plus the fragments for the languages and targets it ships.

## Standard Extensions (every repo)

Expand All @@ -9,10 +9,8 @@ The shared `.code-workspace` set for the fleet: the standard extensions every re
- **`editorconfig.editorconfig`** - applies `.editorconfig`.
- **`yzhang.markdown-all-in-one`** - Markdown editing and the auto-generated Table of Contents.
- **`fanaticpythoner.better-todo-tree`** - surfaces TODO/FIXME markers.
- **`github.vscode-github-actions`** - GitHub Actions authoring.
- **`arahata.linter-actionlint`** - actionlint for workflow YAML.
- **`timonwong.shellcheck`** - shellcheck for shell scripts.
- **`anthropic.claude-code`** - the coding agent.

The standard set holds only extensions that work without a separately installed tool. A repo can recommend any further extension it finds useful by adding it to its own workspace.

## Language and Target Additions

Expand All @@ -29,4 +27,4 @@ The shared `.code-workspace` set for the fleet: the standard extensions every re

## Composing a Workspace

A repo's `<Repo>.code-workspace` is a single-folder workspace (`"folders": [{ "path": "." }]`) that merges `base.jsonc` with the per-type fragments for the languages and targets it ships: the merged `extensions.recommendations` is the standard set plus each type's additions, and the merged `settings` are the shared editor defaults plus each type's formatter block. This repo's own `ProjectTemplate.code-workspace` carries `base.jsonc` only, since it ships no application language.
A repo's `<Repo>.code-workspace` is a single-folder workspace (`"folders": [{ "path": "." }]`) that merges `base.jsonc` with the per-type fragments for the languages and targets it ships: the merged `extensions.recommendations` is the standard set plus each type's additions, and the merged `settings` are the shared editor defaults plus each type's formatter block. This repo's own `ProjectTemplate.code-workspace` carries `base.jsonc` plus `python.jsonc`'s extensions and formatter block, for its Python scripts tree.
4 changes: 0 additions & 4 deletions catalog/snippets/vscode/base.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@
},
"extensions": {
"recommendations": [
"anthropic.claude-code",
"arahata.linter-actionlint",
"davidanson.vscode-markdownlint",
"editorconfig.editorconfig",
"fanaticpythoner.better-todo-tree",
"github.vscode-github-actions",
"streetsidesoftware.code-spell-checker",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
}
Expand Down
3 changes: 0 additions & 3 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"accessibilities",
"Allman",
"apikey",
"arahata",
"astral",
"autoremove",
"buildcache",
Expand Down Expand Up @@ -57,7 +56,6 @@
"Genericize",
"gpgsign",
"gpgv",
"gruntfuggly",
"HACS",
"hass",
"hatchling",
Expand Down Expand Up @@ -127,7 +125,6 @@
"sshconfig",
"stdlib",
"subsetting",
"timonwong",
"Triaging",
"tzdata",
"unbuilt",
Expand Down
4 changes: 2 additions & 2 deletions docs/devcontainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Prerequisite: complete [host setup][host-setup] first. Without git config, an SS
| --------- | ------ | ------- |
| `gh` CLI | `ghcr.io/devcontainers/features/github-cli:1` | Issue/PR/release management from inside the container |
| Common utilities | `ghcr.io/devcontainers/features/common-utils:2` | bash, curl, wget, sudo, `vscode` user |
| VS Code extensions | `customizations.vscode.extensions` in each `devcontainer.json` | Mirrors the matching workspace's `recommendations` so the container has the same tooling |
| VS Code extensions | `customizations.vscode.extensions` in each `devcontainer.json` | The standard set, the container's language defaults, and the Docker extension |

The .NET container additionally ships the `csharpier`/`dotnet-outdated` local tools (restored by `catalog/snippets/devcontainer/dotnet/post-create.sh`). The Python container additionally ships `uv` (installed by `catalog/snippets/devcontainer/python/post-create.sh` from a version-pinned URL) and pre-syncs the Python package venv where one is present.

Each devcontainer's extension list and the matching workspace's `recommendations` are kept identical, so when you add an extension to one, add it to the other.
Each devcontainer's extension list is the workspace catalog's `base.jsonc` set plus that container's own language fragment and `docker.jsonc`, and a repo carrying one drops the Docker extension where it ships no Docker target.

## Bind Mounts (Both Containers)

Expand Down
Loading