From 2b3b6e3719d089252ba202d4ea720fc3391208cf Mon Sep 17 00:00:00 2001 From: Warrick Lo Date: Fri, 8 May 2026 12:37:46 -0700 Subject: Add CI linter rules Signed-off-by: Warrick Lo --- .github/workflows/lint.yaml | 4 ++++ lint.rules | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 lint.rules 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 -- cgit v1.2.3