TODO section 35 (54 -> 73 rules: every rule in Verible's published list but forbid-implicit-declarations). module-begin-block, legacy-generate-region, legacy-genvar-declaration, v2001-generate-begin, explicit-function-lifetime, explicit-task-lifetime (both exempt out-of-body definitions after a census showed 948 of 960 findings were exactly that shape), positive-meaning-parameter-name, suggest-parentheses (safe fix, truth-tabled), unpacked-dimensions-range-ordering, uvm-macro-semicolon, create-object-name-match, numeric-format-string-style, macro-string-concatenation, disable-statement, forbidden-macro, endif-comment (safe fix), forbid-line-continuations, dff-name-style, proper-parameter-declaration. Verible's forbidden-symbol is the source-file name of invalid-system-task-function (read in its rule .cc), so it is that rule's symbols option, nothing fires twice; void-cast gains forbidden_calls. Shared readers: walk_items_scoped, exprs.rs, preproc.rs. A checked-in e2e case drives lucisv.lint.options over the wire. Two rules fire on an error leaf because the parser refuses a module-scope begin/end and a bare generate begin - filed as docs/topo.md 2.9-25. 3 695 tests / 48 binaries; corpus 814/820 byte-identical to 0.38.0; opentitan default-set census 1 053 -> 1 169, the arithmetic balancing to the six default-on additions; timing unchanged. docs/features/linter-expansion-3/README.md. Co-Authored-By: Claude Fable 5 <[email protected]>
83 lines
2.6 KiB
Rust
83 lines
2.6 KiB
Rust
//! The rules themselves, one module each.
|
|
//!
|
|
//! Most rules are **syntactic** — text, tokens or tree shape. The ones that
|
|
//! are not read the symbol table: `unused-signal`, `undriven-net` and
|
|
//! `multiply-driven` through `crate::signals` (see
|
|
//! `docs/features/semantic-lints/README.md`), and `duplicate-declaration` and
|
|
//! `instance-shadowing` through `vlog_semantic::Semantics` directly (see
|
|
//! `docs/features/linter-expansion-1/README.md`).
|
|
|
|
pub mod always_comb;
|
|
pub mod always_comb_blocking;
|
|
pub mod always_ff_non_blocking;
|
|
pub mod banned_declared_name_patterns;
|
|
pub mod case_missing_default;
|
|
pub mod constraint_name_style;
|
|
pub mod create_object_name_match;
|
|
pub mod dff_name_style;
|
|
pub mod disable_statement;
|
|
pub mod duplicate_declaration;
|
|
pub mod empty_item;
|
|
pub mod endif_comment;
|
|
pub mod enum_name_style;
|
|
pub mod explicit_begin;
|
|
pub mod explicit_function_lifetime;
|
|
pub mod explicit_function_task_parameter_type;
|
|
pub mod explicit_parameter_storage_type;
|
|
pub mod explicit_task_lifetime;
|
|
pub mod forbid_consecutive_null_statements;
|
|
pub mod forbid_defparam;
|
|
pub mod forbid_line_continuations;
|
|
pub mod forbid_negative_array_dim;
|
|
pub mod forbidden_macro;
|
|
pub mod generate_label;
|
|
pub mod generate_label_prefix;
|
|
pub mod incomplete_assignment;
|
|
pub mod instance_shadowing;
|
|
pub mod interface_name_style;
|
|
pub mod invalid_system_task_function;
|
|
pub mod legacy_generate_region;
|
|
pub mod legacy_genvar_declaration;
|
|
pub mod line_length;
|
|
pub mod macro_name_style;
|
|
pub mod macro_string_concatenation;
|
|
pub mod mismatched_labels;
|
|
pub mod module_begin_block;
|
|
pub mod module_filename;
|
|
pub mod module_name_style;
|
|
pub mod module_parameter;
|
|
pub mod module_port;
|
|
pub mod multiply_driven;
|
|
pub mod no_tabs;
|
|
pub mod no_trailing_whitespace;
|
|
pub mod numeric_format_string_style;
|
|
pub mod one_module_per_file;
|
|
pub mod package_filename;
|
|
pub mod packed_dimensions_range_ordering;
|
|
pub mod parameter_name_style;
|
|
pub mod parameter_type_name_style;
|
|
pub mod plusarg_assignment;
|
|
pub mod port_name_suffix;
|
|
pub mod positive_meaning_parameter_name;
|
|
pub mod posix_eof;
|
|
pub mod proper_parameter_declaration;
|
|
pub mod signal_name_style;
|
|
pub mod struct_union_name_style;
|
|
pub mod suggest_parentheses;
|
|
pub mod suspicious_semicolon;
|
|
pub mod truncated_numeric_literal;
|
|
pub mod typedef_enums;
|
|
pub mod typedef_structs_unions;
|
|
pub mod undeclared_identifier;
|
|
pub mod undersized_binary_literal;
|
|
pub mod undriven_net;
|
|
pub mod unknown_parameter;
|
|
pub mod unknown_port;
|
|
pub mod unpacked_dimensions_range_ordering;
|
|
pub mod unused_signal;
|
|
pub mod unused_waiver;
|
|
pub mod uvm_macro_semicolon;
|
|
pub mod v2001_generate_begin;
|
|
pub mod void_cast;
|
|
pub mod wire_reg_mixup;
|