mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-30 14:56:11 +00:00
The lint walk fix in commit 115196f28 dropped `.agents/skills/` and
`.claude/skills/` from the python / shellcheck / generic walks but did
NOT extend the same exclusion to `markdownlint-cli2`, which has its
own glob config in `.markdownlint-cli2.jsonc`. As a result every
`pre-commit run make-lint-markdown` flagged 14 baseline findings in
vendored skill README / SKILL.md files (MD041 first-line-heading,
MD045 no-alt-text) — those ship from upstream skill repos and follow
their own conventions.
Add `.agents/skills/**` and `.claude/skills/**` to the `ignores` array.
Drop the two patterns that match zero files today:
- `tests/**/fixtures/**` — there is no `fixtures/` directory anywhere
under `tests/`; the actual fixture files are Python modules named
`_fixtures.py` (already covered by the markdownlint glob's `**/*.md`
restriction).
- `docs/changelog/archive/**` — there is no `archive/` directory under
`docs/changelog/`.
`.github/PULL_REQUEST_TEMPLATE/**` is kept (still matches the six
template files).
Verified: `make lint-markdown` now reports `0 error(s)` over
686 files (was 716 walked / 14 errors before).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
// markdownlint-cli2 config — see https://github.com/DavidAnson/markdownlint-cli2
|
|
// Strategy: keep semantic rules, drop cosmetic ones that would generate
|
|
// hundreds of baseline findings on the existing tree. Tighten later by
|
|
// removing entries from the disabled list.
|
|
"config": {
|
|
"default": true,
|
|
// Hard-fail rules we keep on:
|
|
// MD025 (single H1), MD041 (first line H1), MD026 (no trailing
|
|
// heading punctuation), MD034 (no bare URLs), MD040 (fenced code
|
|
// language) — all match our documentation.md / readme_md.md.
|
|
//
|
|
// Rules disabled for the initial baseline:
|
|
"MD013": false,
|
|
"MD007": false,
|
|
"MD024": { "siblings_only": true },
|
|
"MD033": false,
|
|
"MD036": false,
|
|
"MD038": false,
|
|
"MD040": false,
|
|
"MD042": false,
|
|
"MD046": false,
|
|
"MD051": false,
|
|
"MD059": false,
|
|
"MD060": false
|
|
},
|
|
"globs": [
|
|
"**/*.md"
|
|
],
|
|
"ignores": [
|
|
"node_modules/**",
|
|
".git/**",
|
|
"venv/**",
|
|
".venv/**",
|
|
"**/__pycache__/**",
|
|
".github/PULL_REQUEST_TEMPLATE/**",
|
|
".agents/skills/**",
|
|
".claude/skills/**"
|
|
]
|
|
}
|