Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- run: go mod download
- run: go build -v .
- name: Run linters
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v8
with:
version: latest

Expand Down
44 changes: 34 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
# Visit https://golangci-lint.run/ for usage documentation
# and information on other useful linters
issues:
max-per-linter: 0
max-same-issues: 0

version: "2"
linters:
disable-all: true
enable:
- dupl
- gosec
- nakedret
- whitespace
- durationcheck
- errcheck
- copyloopvar
- forcetypeassert
- godot
- gofmt
- gosimple
- ineffassign
- makezero
- misspell
Expand All @@ -24,4 +20,32 @@ linters:
- unconvert
- unparam
- unused
- govet
- govet
settings:
dupl:
threshold: 250
exclusions:
generated: lax
rules:
- text: 'ST1003:'
linters:
- staticcheck
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$