mirror of
https://github.com/kairos-io/immucore.git
synced 2025-04-27 11:01:02 +00:00
Bump golangci lint config (#453)
Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
parent
4adce19966
commit
dbc697a479
2
.github/workflows/lint.yaml
vendored
2
.github/workflows/lint.yaml
vendored
@ -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
|
||||
|
@ -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$
|
||||
|
Loading…
Reference in New Issue
Block a user