From b1b3cad09be024457dc98595c71e138fc98c6867 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Fri, 4 Sep 2026 03:46:55 -0500 Subject: [PATCH] =?UTF-8?q?TODO=20=C2=A735=20planned:=20linter=20expansion?= =?UTF-8?q?=20wave=203=20=E2=80=94=20the=20remaining=20twenty=20Verible=20?= =?UTF-8?q?rules,=20forbidden-*=20lists,=20the=20e2e=20options=20case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- TODO.md | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/TODO.md b/TODO.md index 7d00a6a..42c2954 100644 --- a/TODO.md +++ b/TODO.md @@ -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 +