.github: staticcheck-action → golangci-lint-action (#2238)
golangci-lint bundles many Go linters (https://golangci-lint.run/docs/linters/). For now, we are going with its default set of linters, which includes staticcheck, but with the errcheck linter explicitly excluded because it generates a lot of lints; I plan to address those and add errcheck in a subsequent contribution.
This commit is contained in:
1 parent
e158c344d2
commit
49984bb606
2 files changed
+10
-3
No files matched your search
@@ -39,10 +39,10 @@ jobs:
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
|
||||
- uses: dominikh/staticcheck-action@v1.4.0
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v8
|
||||
with:
|
||||
version: "2025.1.1"
|
||||
install-go: false
|
||||
version: v2.5.0
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
version: "2"
|
||||
linters:
|
||||
disable:
|
||||
- errcheck
|
||||
issues:
|
||||
max-issues-per-linter: 0 # no limit
|
||||
max-same-issues: 0 # no limit
|
||||
Reference in new issue
Block a user