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. Both can also be written in lucisv.toml under a [lint] table (select = [...], ignore = [...]), which a command-line flag overrides key by key, and in an editor as lucisv.lint.select / lucisv.lint.ignore.

The semantic rules — unused-signal, undriven-net, multiply-driven — run by default wherever lucisv can see the other files of your project (lucisv check rtl/, or the language server), because it can then tell that another file reads a signal through a hierarchical path. Over a single file or a stdin buffer there is nothing to ask, so they are off and must be --selected.

--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.