Skip to content

chore: add markdownlint config and declare code-fence languages#552

Merged
billchurch merged 2 commits into
mainfrom
chore/markdownlint-doc-cleanup
Jun 17, 2026
Merged

chore: add markdownlint config and declare code-fence languages#552
billchurch merged 2 commits into
mainfrom
chore/markdownlint-doc-cleanup

Conversation

@billchurch

Copy link
Copy Markdown
Owner

What

Retro markdown linting, split out from the #546 CSP work as a standalone chore.

  • Adds a scoped .markdownlint-cli2.jsonc so the VS Code extension, the CLI, and the global pre-commit hook agree on rules:
    • MD024siblings_only (allows repeated per-CVE headings under different parents)
    • MD040 → on (fenced code blocks must declare a language)
    • MD013 (line length) and MD060 (table column style) left off — the docs use aligned/padded tables and MD060 has no auto-fixer in this version, so enforcing it would mean reformatting every table.
  • Declares a language on previously-bare fenced code blocks (MD040): text for URLs, directory trees, key mappings, and sample output; bash for command blocks.

Why

VS Code was surfacing a large number of markdown lint warnings. This makes the repo markdownlint-cli2 clean (0 errors / 100 files) without any prose or table reflow.

Notes

  • No prose or table content changed — only fence language tags and the new config.
  • Code-quality (SonarLint) fixes from the same cleanup session landed separately on feat/546-csp-json-config.

Add a scoped .markdownlint-cli2.jsonc so the editor, CLI, and the
pre-commit hook agree on rules. Enables MD024 (siblings_only, for repeated
per-CVE headings) and MD040; leaves MD013 and MD060 off since the docs use
aligned tables and MD060 has no auto-fixer in this version.

Declare a language on previously-bare fenced code blocks (MD040): text for
URLs, directory trees, key mappings, and sample output; bash for command
blocks. No prose or table reflow.
@billchurch billchurch enabled auto-merge (squash) June 17, 2026 13:34
@sonarqubecloud

Copy link
Copy Markdown

@billchurch billchurch merged commit 5984569 into main Jun 17, 2026
6 checks passed
@billchurch billchurch deleted the chore/markdownlint-doc-cleanup branch June 17, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant