Skip to content

Linter

The linter shares discovery, parsing, configuration, and ignore behavior with the formatter, but uses error-tolerant parsing so it can report useful findings from partially understood files.

Terminal window
lucisv check rtl/
lucisv check --select no-tabs,unused-signal rtl/
lucisv check --ignore module-filename rtl/
lucisv check --fix rtl/
lucisv check --output-format json rtl/

--select replaces the default set with a comma-separated list. It can be repeated. --ignore then removes rules from the selected or default set. Semantic rules such as unused-signal, undriven-net, and multiply-driven are opt-in because a single-file view cannot see all hierarchy interactions.

--fix applies safe changes and rewrites the file. Today, no-tabs and no-trailing-whitespace provide safe fixes. --unsafe-fixes widens applicability, but no built-in rule currently offers an unsafe fix.

Fixes are sorted, overlap-checked, and never applied inside format-fenced regions.

wire a; // lucisv: waive no-tabs
// lucisv: waive no-tabs
wire b;
// lucisv: waive-start module-name-style
module LegacyName;
endmodule
// lucisv: waive-stop module-name-style

verilog_lint: is accepted in place of lucisv: for Verible compatibility. The unused-waiver rule reports malformed, unknown, or no-longer-needed suppressions when their target rule is enabled.

See the complete rule reference.