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:
dependabot[bot] 2025-05-05 15:56:39 +08:00 committed by GitHub
parent 203a7b194b
commit 38508c2d68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 47 additions and 32 deletions

View File

@ -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

View File

@ -1,37 +1,53 @@
version: "2"
run: run:
deadline: 3m
modules-download-mode: readonly modules-download-mode: readonly
linters:
linters-settings: default: none
enable:
- errcheck
- goconst
- gocyclo
- govet
- misspell
- staticcheck
settings:
gocyclo: gocyclo:
min-complexity: 60 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:
new: true
formatters:
enable:
- gci
- gofmt
settings:
gci: gci:
sections: sections:
- standard - standard
- default - default
exclusions:
issues: generated: lax
new: true paths:
exclude-rules: - third_party$
- linters: - builtin$
- staticcheck - examples$
text: "SA1019:"
linters:
disable-all: true
enable:
- gci
- gofmt
- golint
- misspell
- govet
- goconst
- deadcode
- gocyclo
- staticcheck
- errcheck
output: output:
format: colored-line-number formats:
print-issued-lines: true text:
path: stdout
print-linter-name: true print-linter-name: true
print-issued-lines: true