Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
with:
fetch-depth: 0
- name: golangci-lint
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: v1.63.4
version: v2.1.6
- name: Check 'go mod tidy' makes no changes
run: |
go mod tidy
Expand Down
27 changes: 24 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
version: "2"
run:
timeout: 6m
issues-exit-code: 1
linters:
disable-all: true
default: none
enable:
- gocritic
- goimports
- govet
- misspell
- unused
- unconvert
- unused
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
issues:
new: true
formatters:
enable:
- goimports
exclusions:
generated: lax
warn-unused: true
paths:
- third_party$
- builtin$
- examples$