Skip to content

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

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.

Reports blocking assignments inside always_ff. Immediate updates can create simulation/synthesis mismatches between registers assigned in one clocked block.

Reports case, casex, and casez statements without default, including unique and priority cases. The correct default action is a design decision.

Requires typedef enum names to match lower_snake_case ending in _e or _t. Anonymous enums and escaped identifiers are exempt.

Reports parameters without a declared storage type, preventing overrides from silently changing width or signedness. Continuation parameters inherit the opening declaration’s type.

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.

Requires lower_snake_case module names. It is opt-in because naming policy is project-specific; escaped identifiers are exempt.

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.

Reports tabs outside string literals. Its safe fix expands each tab using the active indentation width.

Reports whitespace immediately before a line ending. Its safe fix removes the run while leaving string data untouched.

Requires parameter and localparam names to use CamelCase or ALL_CAPS. Item, statement, module-header, and class-header declarations are covered.

Requires typedef struct and typedef union names to use lower_snake_case ending in _t. Anonymous aggregates and escaped identifiers are exempt.

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.

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.

Reports malformed, unknown, or ineffective waiver comments when their target rule is enabled. A waiver for a disabled rule is not judged.

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.