Skip to content

Commit

Permalink
Merge pull request #422 from agoric-labs/mfig-ci-lint
Browse files Browse the repository at this point in the history
ci(lint): make tolerant of deprecations
  • Loading branch information
michaelfig authored Aug 4, 2024
2 parents 3cc2d36 + b6f68ab commit 2c7e403
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 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,6 @@ 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 2c7e403

Please sign in to comment.