TODO §35 planned: linter expansion wave 3 — the remaining twenty Verible rules, forbidden-* lists, the e2e options case
ci / checks (push) Successful in 56s
ci / corpus (push) Successful in 29s

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-09-04 03:46:55 -05:00
1 parent a896e0dff0
commit b1b3cad09b
1 file changed
+62
+62
View File
@@ -3777,3 +3777,65 @@ Every suite and sweep under `tools/guard.sh`.
- [ ] QA: options attacked (bad key/kind/range/regex on both front
ends), every rule with near-misses, the census re-read
## 35. Linter expansion, wave 3 (planned 2026-09-04) — the remaining Verible rules
After §34 (54 rules, options end to end). The twenty Verible rules not
yet in lucisv, each a small file on the §33/§34 pattern (severity,
Verible name and default cited, options through `OptionSpec`, true
positives and near-misses, a `.lint` case, corpus + opentitan counts
with ten findings classified; every new gap between tokens a rule reads
is the parser's, not the rule's). Dev Opus 5, QA Sonnet 5, worktree
`lint-3`, every suite and sweep under `tools/guard.sh`. Feature README:
`docs/features/linter-expansion-3/README.md`.
Rules (Verible default → lucisv default; severity; options):
- `module-begin-block` (on → on; Style): a `begin`/`end` at module scope.
- `legacy-generate-region` (off → off; Style): `generate … endgenerate`.
- `legacy-genvar-declaration` (off → off; Style): a `genvar` declared
outside the `for` header.
- `v2001-generate-begin` (on → on; Style): a bare `begin` in a generate
region.
- `explicit-function-lifetime` / `explicit-task-lifetime` (on → on;
Style): `automatic`/`static` stated outside classes.
- `positive-meaning-parameter-name` (on → on; Style): no `disable_`
prefixed parameters.
- `suggest-parentheses` (on → on; Style): `a ? b : c` inside another
ternary or a mixed-precedence expression without parentheses (Verible's
shape, cited).
- `unpacked-dimensions-range-ordering` (on → on; Style): `[N-1:0]`
unpacked.
- `uvm-macro-semicolon` (off → off; Warning): `` `uvm_* `` macros ending
in `;`.
- `create-object-name-match` (on → on; Warning): `type_id::create("x")`
whose string differs from the variable.
- `numeric-format-string-style` (off → off; Style): `%d`/`%h` prefixes
in format strings.
- `macro-string-concatenation` (off → off; Warning): `` `"…`" `` misuse.
- `disable-statement` (off → off; Warning): `disable` outside a
`fork`/sequential block.
- `forbidden-macro` (on → on; Warning; option `macros` list, default
Verible's `uvm_warning`) and `forbidden-symbol` (on → on; Warning;
option `symbols` list, default `$psprintf`, `$random`, `$dist_*` per
Verible — folding `invalid-system-task-function`'s list into an
option if the two overlap; say which).
- `endif-comment` (off → off; Style; safe fix appends `// name`).
- `forbid-line-continuations` (on → on; Style): a `\` continuation
inside a string literal.
- `dff-name-style` (off → off; Style; options `input`, `output`,
`waive_ifs_with_conditions`, `waive_lhs_regex` as Verible).
- `proper-parameter-declaration` (off → off; Style; options
`package_allow_parameter`, `package_allow_localparam`).
- `void-cast`'s named-call half (Verible's forbidden-call list) as an
option on the existing rule.
Plus the LOW from §34's QA: a checked-in `tests/e2e.rs` case for
`lucisv.lint.options` over the wire. Docs: the toggles regenerated,
README.md rows, docs-site sections, coverage_gaps "linter" addendum.
- [ ] the twenty rules, each with tests and counts
- [ ] `void-cast` option; `forbidden-*` lists; `invalid-system-task-
function` reconciled
- [ ] e2e case for `lucisv.lint.options`
- [ ] docs + regenerated toggles
- [ ] Gates (guarded): fmt/clippy/`cargo test --workspace`; corpus
814/820 byte-identical; vsix smoke; opentitan census + timing
- [ ] QA: every rule attacked; census re-read; options attacked