chore(deps): update golangci/golangci-lint-action action to v7 (#787)
* chore(deps): update golangci/golangci-lint-action action to v7 * bump golangci-lint version Signed-off-by: eternal-flame-AD <yume@yumechi.jp> --------- Signed-off-by: eternal-flame-AD <yume@yumechi.jp> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
af97704011
commit
aa025a5be2
|
|
@ -14,9 +14,9 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: (cd ui && yarn)
|
- run: (cd ui && yarn)
|
||||||
- run: make build-js
|
- run: make build-js
|
||||||
- uses: golangci/golangci-lint-action@v6
|
- uses: golangci/golangci-lint-action@v7
|
||||||
with:
|
with:
|
||||||
version: v1.64
|
version: v2.0.2
|
||||||
args: --timeout=5m
|
args: --timeout=5m
|
||||||
skip-cache: true
|
skip-cache: true
|
||||||
- run: go mod download
|
- run: go mod download
|
||||||
|
|
|
||||||
107
.golangci.yml
107
.golangci.yml
|
|
@ -1,49 +1,62 @@
|
||||||
issues:
|
version: "2"
|
||||||
exclude-dirs:
|
|
||||||
- plugin/example
|
|
||||||
- plugin/testing
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- asciicheck
|
- asciicheck
|
||||||
- copyloopvar
|
- copyloopvar
|
||||||
- godot
|
- godot
|
||||||
- gofmt
|
- gomodguard
|
||||||
- gofumpt
|
- goprintffuncname
|
||||||
- goimports
|
- misspell
|
||||||
- gomodguard
|
- nakedret
|
||||||
- goprintffuncname
|
- nolintlint
|
||||||
- gosimple
|
- sqlclosecheck
|
||||||
- govet
|
- staticcheck
|
||||||
- ineffassign
|
- unconvert
|
||||||
- misspell
|
- whitespace
|
||||||
- nakedret
|
disable:
|
||||||
- nolintlint
|
- err113
|
||||||
- sqlclosecheck
|
- errcheck
|
||||||
- staticcheck
|
- funlen
|
||||||
- stylecheck
|
- gochecknoglobals
|
||||||
- typecheck
|
- gocognit
|
||||||
- unconvert
|
- goconst
|
||||||
- unused
|
- gocyclo
|
||||||
- whitespace
|
- godox
|
||||||
disable:
|
- lll
|
||||||
- err113
|
- nestif
|
||||||
- errcheck
|
- nlreturn
|
||||||
- funlen
|
- noctx
|
||||||
- gochecknoglobals
|
- testpackage
|
||||||
- gocognit
|
- wsl
|
||||||
- goconst
|
settings:
|
||||||
- gocyclo
|
|
||||||
- godox
|
|
||||||
- lll
|
|
||||||
- nestif
|
|
||||||
- nlreturn
|
|
||||||
- noctx
|
|
||||||
- testpackage
|
|
||||||
- wsl
|
|
||||||
|
|
||||||
linters-settings:
|
|
||||||
gofumpt:
|
|
||||||
extra-rules: true
|
|
||||||
misspell:
|
misspell:
|
||||||
locale: US
|
locale: US
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
presets:
|
||||||
|
- comments
|
||||||
|
- common-false-positives
|
||||||
|
- legacy
|
||||||
|
- std-error-handling
|
||||||
|
paths:
|
||||||
|
- plugin/example
|
||||||
|
- plugin/testing
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
formatters:
|
||||||
|
enable:
|
||||||
|
- gofmt
|
||||||
|
- gofumpt
|
||||||
|
- goimports
|
||||||
|
settings:
|
||||||
|
gofumpt:
|
||||||
|
extra-rules: true
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- plugin/example
|
||||||
|
- plugin/testing
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue