feat(lint): run every rule on every program and drop --skip #180
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/157-lint-no-configuration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #157
What
torb linthas no configuration: every rule runs on every program, and no project, file or command line switches one off. The rule set belongs to the toolchain version, the same waytorb formathas no option.compiler/src/lint/command.trb:--skipis gone. It is now an unknown flag, sotorb lint --skip <id>prints the usage and exits with 2. The usage says the rules "run on every program, and none can be switched off".--rule <id>stays as a focus for one run (torb lint --fix --rule deprecated); its help text says it narrows the output and does not change what is valid.compiler/tests/lint.test.trb: the command-line test drops the--skipcase and now asserts--skipis refused. A new test checks the help text:--rulenarrows, and nothing mentions--skip.Docs
docs/tooling/torb-lint.md: synopsis and flag list updated. A new section "No configuration" records the decision (owner, 2026-10-07) and replaces the "Where a project chooses its rules" entry under "What is not decided".docs/tooling/the-torb-command.md: thelintflag table loses--skip,--ruleis reworded, and one sentence says every rule always runs.docs/design/PROJECT.mdsection 13: new non-goal "Not a place for lint or format settings".CONCEPT.md: new design principle 6, "The format is part of the language" (added, not edited: there was no such principle yet).skills/torbscript/references/tooling/{torb-lint,the-torb-command}.md: the generated copies, edited to match the generator's output (torb docs skill docs skills --checkruns in CI).Seed
None. This removes a lint driver flag that the build does not use, with no syntax change and no native.
Test
This worker had no
torbbinary or C compiler, so no local checks ran (not eventorb format --check).tools/check-commits.sh origin/mainis clean. Tier A gates, including format, docs-skill--checkand the compiler suite with thelint.test.trbgroup "The command line", run in forge CI on this PR.1c6118326d8ef91c42c6Approved. CI green on
8ef91c4(tier A incl. compiler suite, pdisc, docs-skill check).--skipis refused; new help-text test.--skipfalls into the unknown-flag branch (exit 2 with usage);--ruleunchanged; no leftover--skipuse of lint in the repo (remaining hits are unrelated vsce/ovsx/git flags).Non-blocking: none.