fix: reject scalar context foreach sources

This commit is contained in:
lda
2026-09-05 06:13:39 +07:00 Verified
parent 2a63c92c17
commit 043bda6a34
6 changed files with 150 additions and 65 deletions
+8 -3
View File
@@ -45,11 +45,16 @@ docstring at the code seam. Future agents usually encounter code first.
Run Markdown lint on the exact files you changed:
```powershell
pnpx markdownlint-cli2 'docs/AGENTS.md' 'docs/current_roadmap.md'
$changedMarkdown = @(
'docs/path/to/changed-file.md'
'skills/path/to/another-changed-file.md'
)
pnpx markdownlint-cli2 $changedMarkdown
```
Use narrow lint or fix targets. Broad autofixes can rewrite historical files or
unrelated user changes.
Replace the example paths with every Markdown file changed in the current
worktree. Use narrow lint or fix targets. Broad autofixes can rewrite
historical files or unrelated user changes.
Follow CommonMark list indentation. When a Markdown example contains fenced
code, wrap the outer example in a fence of four or more backticks.