Bump golangci lint config (#453)

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka 2025-03-25 11:48:39 +01:00 committed by GitHub
parent 4adce19966
commit dbc697a479
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 18 deletions

View File

@ -25,7 +25,7 @@ jobs:
with:
go-version-file: go.mod
- name: Golangci-lint
uses: golangci/golangci-lint-action@v6.5.2
uses: golangci/golangci-lint-action@v7.0.0
with:
version: latest
only-new-issues: true

View File

@ -1,23 +1,36 @@
version: "2"
run:
timeout: 5m
tests: false
linters:
enable:
- revive # replacement for golint
- dupl # check duplicated code
- goconst # check strings that can turn into constants
- gofmt # check fmt
- goheader # Check license headers, only checks files in current year
- goimports # check imports
- gocyclo # check complexity
- govet
- gosimple
- ineffassign
- unused
- staticcheck
- typecheck
- godot
- misspell
- zerologlint
- dupl
- ginkgolinter
- gocheckcompilerdirectives
- goconst
- gocyclo
- godot
- goheader
- misspell
- revive
- zerologlint
exclusions:
generated: lax
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$