Repository navigation
Description
star lint markdown cannot run on Windows at all. It passes every discovered filename to
markdownlint-cli2 as argv and exceeds the 32,767-character command-line limit.
Measured 2026-10-01 on fix/994-go-style-fix-corrupts-headers, repository root:
$ star lint markdown .
[star] [+] Found 484 markdown file(s)
Error: Traceback (most recent call last):
commands/lint-markdown.star:54:27: in run
Error in lint.markdown: markdownlint-cli2 failed: The command line is too long.
It is not a missing tool: markdownlint-cli2 is installed and star lint tools reports all four tools
present. The command dies in the exec.
Why this matters more than one linter being broken
The owner's requirement is that star lint all gate pre-commit and CI. On Windows star lint all can
never pass, because markdown crashes inside it. CI runs on Linux, where the limit is around 2 MB, so CI will
never see this -- which makes it exactly the class of defect that lets a gate claim success while being
unrunnable where the work happens.
Where it is
cmd/star/extensions/com.noblefactor.star.LintMarkdown/commands/lint-markdown.star collects every file and
hands the whole list to lint.markdown(files = md_files, fix = fix) in one call. The Go side execs
markdownlint-cli2 with that list.
Three candidate shapes, in the order I would argue for them:
- Batch the exec. The Go provider chunks the file list to a platform-safe argv budget and aggregates the
results. Nothing in the Starlark surface changes, and it fixes the same class of defect for any file count
on any platform. - Pass globs rather than files.
markdownlint-cli2accepts glob patterns, so the exec could carry a
handful of patterns instead of 484 paths. Cheaper, but it hands discovery to the tool and drops the
.gitignorehonoring that the file provider gives us -- a behavior change, not just a plumbing one. - A response file.
markdownlint-cli2has no@fileargv convention, so this is not available.
Recommend 1. It is the only one that keeps discovery where it is and cannot fail again at a larger file count.
Also found while measuring, same extension
lint.markdown.exclude is declared with defaults and read by nothing. The manifest declares
exclude: "[]string" with defaults node_modules, vendor, .git
(com.noblefactor.star.LintMarkdown/extension.yaml), and neither the Starlark nor any Go code ever reads it --
grep for a reader returns nothing. So the extension lints testdata and generated markdown with no way to
opt out, and a project setting lint.markdown.exclude is silently ignored.
lint-markdown.star never calls config.get at all. Only lint.all, lint.copyright and lint.starlark
do.
This is the same defect in two more places, worth recording here even if they are fixed elsewhere:
| Config declared | Read by | Verdict |
|---|---|---|
lint.markdown.exclude |
nothing | dead |
lint.go_style.enabled |
nothing | dead |
lint.shell.severity, lint.shell.indent |
nothing -- lint-shell.star reads ctx.args and hard-codes the same defaults |
dead |
lint.go_style.line_width, comment_schemas and spacing_rules are read, by the goast provider
(provider.go:460, :501, :520, :565), so the go_style block is only partly dead.
Activity
David-Noble-at-work commentedon Nov 9, 2026
star github triage sweep added this issue to Triage: devlore, for the rules it breaks:
severity: a Bug whose Severity is blank; a bug is Critical, High, Medium or Lowno-evidence: no Evidence of completion section