Lint rules
16 rules indexed
| Rule | Default | Fix | Purpose |
|---|---|---|---|
always-comb-blocking |
on | — | Use = inside always_comb |
always-ff-non-blocking |
on | — | Use <= inside always_ff |
case-missing-default |
on | — | Give every case a default branch |
enum-name-style |
on | — | Name enum typedefs with _e or _t |
explicit-parameter-storage-type |
on | — | Declare parameter storage types |
module-filename |
on | — | Match one-module files to module names |
module-name-style |
off | — | Use lower_snake_case module names |
multiply-driven |
off | — | Give variables one driver |
no-tabs |
on | safe | Use spaces outside string literals |
no-trailing-whitespace |
on | safe | Remove end-of-line whitespace |
parameter-name-style |
on | — | Use CamelCase or ALL_CAPS parameters |
struct-union-name-style |
on | — | Name aggregate typedefs with _t |
undriven-net |
off | — | Drive signals that are read |
unused-signal |
off | — | Detect unreferenced internal signals |
unused-waiver |
on | — | Remove ineffective suppressions |
wire-reg-mixup |
on | — | Prefer logic to reg in SystemVerilog |
always-comb-blocking
Section titled “always-comb-blocking”Reports non-blocking assignments inside always_comb. Scheduled updates can make later statements observe stale values in simulation. No automatic fix is offered because changing the operator can change behavior.
always-ff-non-blocking
Section titled “always-ff-non-blocking”Reports blocking assignments inside always_ff. Immediate updates can create simulation/synthesis mismatches between registers assigned in one clocked block.
case-missing-default
Section titled “case-missing-default”Reports case, casex, and casez statements without default, including unique and priority cases. The correct default action is a design decision.
enum-name-style
Section titled “enum-name-style”Requires typedef enum names to match lower_snake_case ending in _e or _t. Anonymous enums and escaped identifiers are exempt.
explicit-parameter-storage-type
Section titled “explicit-parameter-storage-type”Reports parameters without a declared storage type, preventing overrides from silently changing width or signedness. Continuation parameters inherit the opening declaration’s type.
module-filename
Section titled “module-filename”Requires a file containing exactly one module or interface to share its name. Multi-unit files, files with no units, and unnamed stdin are exempt.
module-name-style
Section titled “module-name-style”Requires lower_snake_case module names. It is opt-in because naming policy is project-specific; escaped identifiers are exempt.
multiply-driven
Section titled “multiply-driven”Reports SystemVerilog variables written by multiple sources. Nets are intentionally excluded, as are partial writes, generated alternatives, preprocessor alternatives, initializers, initial blocks, and function/task bodies where the analysis cannot prove a conflict.
no-tabs
Section titled “no-tabs”Reports tabs outside string literals. Its safe fix expands each tab using the active indentation width.
no-trailing-whitespace
Section titled “no-trailing-whitespace”Reports whitespace immediately before a line ending. Its safe fix removes the run while leaving string data untouched.
parameter-name-style
Section titled “parameter-name-style”Requires parameter and localparam names to use CamelCase or ALL_CAPS. Item, statement, module-header, and class-header declarations are covered.
struct-union-name-style
Section titled “struct-union-name-style”Requires typedef struct and typedef union names to use lower_snake_case ending in _t. Anonymous aggregates and escaped identifiers are exempt.
undriven-net
Section titled “undriven-net”Reports internal signals that are read but never driven. It stays silent for ports, instance/gate connections, task arguments, macros, directives, verbatim or unparsed regions, wildcard connections, and declarations with initializers to avoid false positives.
unused-signal
Section titled “unused-signal”Reports internal nets or variables with no use. Ports, intentionally unused names, and names mentioned anywhere in raw tokens are excluded. The rule is opt-in because cross-file hierarchy can establish uses a single-file analysis cannot see.
unused-waiver
Section titled “unused-waiver”Reports malformed, unknown, or ineffective waiver comments when their target rule is enabled. A waiver for a disabled rule is not judged.
wire-reg-mixup
Section titled “wire-reg-mixup”Reports reg in .sv and .svh files and recommends logic. Verilog .v/.vh files and unnamed stdin are exempt; wire remains valid and is never flagged.