Skip to content

Commit

Permalink
ci(lint): make tolerant of deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 3, 2024
1 parent 3768f9c commit 11bc14b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
strategy:
matrix:
mode: [no-failure, no-deprecations]
steps:
- uses: actions/setup-go@v3
with:
Expand All @@ -24,3 +27,7 @@ jobs:
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.49.0
args: |
${{ '--exclude=nolintlint' }}
${{ matrix.mode == 'no-deprecations' && '--exclude=SA1019' || '' }}
${{ matrix.mode == 'no-failure' && '--issues-exit-code=0' || '' }}
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ linters:
- ineffassign
- misspell
- nakedret
- nolintlint
# [AGORIC] Caused false-positives
# - nolintlint
- staticcheck
- stylecheck
- typecheck
Expand Down

0 comments on commit 11bc14b

Please sign in to comment.