fix: update golangci-lint-action to v6 and remove deprecated linters

Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Agent-Logs-Url: https://github.com/casdoor/casdoor/sessions/7c8360de-bb17-4fd6-8106-81a46e803e81
This commit is contained in:
copilot-swe-agent[bot]
2026-03-25 12:50:22 +00:00
parent 60e5a67c72
commit d83308f29a
2 changed files with 1 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ jobs:
- run: touch dummy.yml
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --disable-all -c dummy.yml -E=gofumpt --max-same-issues=0 --timeout 5m --modules-download-mode=mod

View File

@@ -1,7 +1,6 @@
linters:
disable-all: true
enable:
- deadcode
- dupl
- errcheck
- goconst
@@ -17,14 +16,11 @@ linters:
- nakedret
- prealloc
- staticcheck
- structcheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- revive
- exportloopref
run:
deadline: 5m
skip-dirs: