aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarrick Lo <wlo@warricklo.net>2026-05-08 12:37:46 -0700
committerWarrick Lo <wlo@warricklo.net>2026-05-08 12:37:46 -0700
commit2b3b6e3719d089252ba202d4ea720fc3391208cf (patch)
tree532000c087baf1007eda5910a4767dee9a19ad1c
parentAdd GitHub Actions for linting and formatting (diff)
downloadmontreal-2b3b6e3719d089252ba202d4ea720fc3391208cf.tar.xz
montreal-2b3b6e3719d089252ba202d4ea720fc3391208cf.zip
Add CI linter rules
Signed-off-by: Warrick Lo <wlo@warricklo.net>
Diffstat (limited to '')
-rw-r--r--.github/workflows/lint.yaml4
-rw-r--r--lint.rules2
2 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
index e28e711..94ad728 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/lint.yaml
@@ -9,4 +9,8 @@ jobs:
- uses: actions/checkout@master
- uses: chipsalliance/verible-linter-action@main
with:
+ config_file: "lint.rules"
github_token: ${{ secrets.GITHUB_TOKEN }}
+ - name: Fail on lint errors
+ run: |
+ verible-verilog-lint --lint_fatal=true --rules_config=lint.rules $(find . -name "*.sv" -o -name "*.v")
diff --git a/lint.rules b/lint.rules
new file mode 100644
index 0000000..6ccb7f4
--- /dev/null
+++ b/lint.rules
@@ -0,0 +1,2 @@
++port-name-suffix
++dff-name-style