mirror of https://github.com/dragonflyoss/api.git
chore(deps): bump golangci/golangci-lint-action from 6 to 8 (#488)
* chore(deps): bump golangci/golangci-lint-action from 6 to 8 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 8. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v8) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix lint errors Signed-off-by: yxxhero <aiopsclub@163.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: yxxhero <aiopsclub@163.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
203a7b194b
commit
38508c2d68
|
@ -18,10 +18,9 @@ jobs:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
|
|
||||||
- name: Golangci lint
|
- name: Golangci lint
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v8
|
||||||
with:
|
with:
|
||||||
version: v1.54
|
version: v2.1.6
|
||||||
args: --verbose
|
|
||||||
|
|
||||||
rust-lint:
|
rust-lint:
|
||||||
name: Rust Lint
|
name: Rust Lint
|
||||||
|
|
|
@ -1,37 +1,53 @@
|
||||||
|
version: "2"
|
||||||
run:
|
run:
|
||||||
deadline: 3m
|
|
||||||
modules-download-mode: readonly
|
modules-download-mode: readonly
|
||||||
|
linters:
|
||||||
linters-settings:
|
default: none
|
||||||
gocyclo:
|
enable:
|
||||||
min-complexity: 60
|
- errcheck
|
||||||
gci:
|
- goconst
|
||||||
sections:
|
- gocyclo
|
||||||
- standard
|
- govet
|
||||||
- default
|
- misspell
|
||||||
|
- staticcheck
|
||||||
|
settings:
|
||||||
|
gocyclo:
|
||||||
|
min-complexity: 60
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
presets:
|
||||||
|
- comments
|
||||||
|
- common-false-positives
|
||||||
|
- legacy
|
||||||
|
- std-error-handling
|
||||||
|
rules:
|
||||||
|
- linters:
|
||||||
|
- staticcheck
|
||||||
|
text: 'SA1019:'
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
issues:
|
issues:
|
||||||
new: true
|
new: true
|
||||||
exclude-rules:
|
formatters:
|
||||||
- linters:
|
|
||||||
- staticcheck
|
|
||||||
text: "SA1019:"
|
|
||||||
|
|
||||||
linters:
|
|
||||||
disable-all: true
|
|
||||||
enable:
|
enable:
|
||||||
- gci
|
- gci
|
||||||
- gofmt
|
- gofmt
|
||||||
- golint
|
settings:
|
||||||
- misspell
|
gci:
|
||||||
- govet
|
sections:
|
||||||
- goconst
|
- standard
|
||||||
- deadcode
|
- default
|
||||||
- gocyclo
|
exclusions:
|
||||||
- staticcheck
|
generated: lax
|
||||||
- errcheck
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
output:
|
output:
|
||||||
format: colored-line-number
|
formats:
|
||||||
print-issued-lines: true
|
text:
|
||||||
print-linter-name: true
|
path: stdout
|
||||||
|
print-linter-name: true
|
||||||
|
print-issued-lines: true
|
Loading…
Reference in New Issue