Skip to content

Commit abb9d32

Browse files
Luka Macanimphil
authored andcommitted
Add .svlint.toml
Added .svlint.toml with the configuration originating from the OpenTitan project. Additionaly excluded the vendor folder.
1 parent 09f6d4f commit abb9d32

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.svlint.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright lowRISC contributors.
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# Rules for svlint, a SystemVerilog linter commonly used in editors.
6+
# The configuration matches the lowRISC SystemVerilog style guide at
7+
# https://github.com/lowRISC/style-guides/blob/master/VerilogCodingStyle.md.
8+
# See https://github.com/dalance/svlint/blob/master/RULES.md for a list of rules.
9+
10+
[option]
11+
exclude_paths = ["build.*", "sw/.*", ".sv.tpl$", "vendor/.*"]
12+
13+
[rules]
14+
case_default = true
15+
enum_with_type = true
16+
for_with_begin = true
17+
function_same_as_system_function = true
18+
function_with_automatic = true
19+
generate_for_with_label = true
20+
generate_if_with_label = true
21+
generate_keyword_forbidden = true
22+
generate_keyword_required = false
23+
genvar_declaration_in_loop = true
24+
genvar_declaration_out_loop = false
25+
if_with_begin = true
26+
inout_with_tri = false
27+
input_with_var = false
28+
interface_port_with_modport = false
29+
legacy_always = false
30+
level_sensitive_always = true
31+
loop_variable_declaration = true
32+
non_ansi_module = true
33+
output_with_var = false
34+
parameter_in_package = false
35+
priority_keyword = true
36+
tab_character = true
37+
unique0_keyword = false
38+
unique_keyword = false
39+
wire_reg = true
40+
generate_keyword = false
41+
tab_charactor = false
42+
genvar_declaration = false

0 commit comments

Comments
 (0)