From c8955842d535babec43143cb26059a77031e4856 Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Fri, 10 Mar 2023 17:47:18 +0000 Subject: [PATCH] Add svlint linting rules --- .svlint.toml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .svlint.toml diff --git a/.svlint.toml b/.svlint.toml new file mode 100644 index 0000000..239864b --- /dev/null +++ b/.svlint.toml @@ -0,0 +1,59 @@ +[option] +indent = 2 + +[rules] +action_block_with_side_effect = true +blocking_assignment_in_always_ff = true +case_default = true +default_nettype_none = true +enum_with_type = true +explicit_case_default = true +# explicit_if_else = true +function_same_as_system_function = true +function_with_automatic = true +generate_case_with_label = true +generate_for_with_label = true +generate_if_with_label = true +genvar_declaration_in_loop = true +genvar_declaration_out_loop = false +inout_with_tri = true +input_with_var = true +interface_port_with_modport = true +keyword_forbidden_always = true +keyword_forbidden_generate = true +keyword_forbidden_priority = true +keyword_forbidden_unique = true +keyword_forbidden_unique0 = true +keyword_forbidden_wire_reg = true +keyword_required_generate = false +level_sensitive_always = true # Redundant with keyword_forbidden_always. +localparam_explicit_type = true +localparam_type_twostate = true +multiline_for_begin = true +multiline_if_begin = true +non_ansi_module = true +non_blocking_assignment_in_always_comb = true +output_with_var = true +parameter_default_value = true +parameter_explicit_type = true +parameter_in_generate = true +parameter_in_package = true +parameter_type_twostate = true +sequential_block_in_always_comb = true +sequential_block_in_always_ff = true +sequential_block_in_always_latch = true +style_commaleading = true +style_indent = true +style_keyword_0or1space = true +style_keyword_0space = true +style_keyword_1or2space = true +style_keyword_datatype = false # Overly restrictive. +style_keyword_end = true +style_keyword_maybelabel = true +style_keyword_newline = true +style_operator_arithmetic = true +style_operator_boolean = true +style_operator_integer = true +style_operator_unary = true +style_trailingwhitespace = true +tab_character = true