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]>
21 lines
899 B
TOML
21 lines
899 B
TOML
[package]
|
|
name = "vlog_linter"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "Syntactic lint rules for Verilog/SystemVerilog, in the spirit of ruff and Verible"
|
|
|
|
[dependencies]
|
|
vlog_parser = { path = "../vlog_parser" }
|
|
# The semantic rules (unused-signal, undriven-net, multiply-driven) need the
|
|
# file's symbol table: which declaration a name means. `vlog_semantic` is the
|
|
# workspace crate that answers that, and it depends on `vlog_parser` alone, so
|
|
# this adds no external code — see docs/features/semantic-lints/README.md.
|
|
vlog_semantic = { path = "../vlog_semantic" }
|
|
|
|
[dev-dependencies]
|
|
# Tests only: the .lint case harness asserts that a lint fix never produces
|
|
# something the formatter would refuse. The library still depends on
|
|
# vlog_parser + std alone (`cargo tree -p vlog_linter -e normal`).
|
|
vlog_formatter = { path = "../vlog_formatter" }
|