Semantic lints M12: unused-signal, undriven-net, multiply-driven

The first rules that use vlog_semantic, crossing TODO §7's threshold the
careful way: a read/write/unknown classification layer in vlog_linter
(vlog_semantic untouched - driver semantics is a lint concept), whole-
word mention guards so ifdef arms and macro bodies never produce a false
unused, connections treated as unknown direction, and force/release with
their own driver kind so a test override is neither a second driver nor
the only one. All three default off, decided from data: 55 corpus hits,
zero wrong on reading, but single-file scanning cannot see cross-file
readers. Default vfmt check output is byte-identical to before,
worktree-diffed. ~45ms per 860 files when enabled; three rules cost one.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-25 02:24:37 -07:00
1 parent a96c908a3e
commit 80978f324f
20 files changed
+3190 -7

No files matched your search

+2 -1
View File
@@ -167,7 +167,7 @@ built but nothing consumes yet. Ordered by value ÷ cost:
- [x] **Module hierarchy** — "who instantiates X / what does X
instantiate", as LSP callHierarchy (modules as the nodes) or a custom
request the extension renders; the index already knows both directions.
- [ ] **Semantic lint rules** — unused-signal, undriven-net,
- [x] **Semantic lint rules** — unused-signal, undriven-net,
multiply-driven: TODO.md §7 calls this the differentiation Verible
cannot do, `vlog_semantic` has existed for rounds, and no semantic rule
ships yet.
@@ -266,6 +266,7 @@ commit — in order:
- [x] M9 file-watching — done, QA clean first pass, reviewed
- [x] M10 include-nav — done, one QA HIGH reworked, reviewed
- [x] M11 hierarchy — done, QA doc-fixes in-round, reviewed
- [x] M12 semantic-lints — done, one QA medium reworked, reviewed
## Work log