mirror of
https://github.com/kairos-io/immucore.git
synced 2025-04-27 19:16:59 +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:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
- name: Golangci-lint
|
- name: Golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v6.5.2
|
uses: golangci/golangci-lint-action@v7.0.0
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
only-new-issues: true
|
only-new-issues: true
|
||||||
|
@ -1,23 +1,36 @@
|
|||||||
|
version: "2"
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
|
||||||
tests: false
|
tests: false
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- revive # replacement for golint
|
- dupl
|
||||||
- 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
|
|
||||||
- ginkgolinter
|
- ginkgolinter
|
||||||
- gocheckcompilerdirectives
|
- 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