Update VSCode settings and CI lint configuration: modify Go lint flags for improved performance and update golangci-lint version to 2.1.2.
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/tests Pipeline was successful
ci/woodpecker/push/build unknown status

This commit is contained in:
qpismont 2025-04-17 20:34:14 +00:00
parent edc9aeb471
commit f8f0f0eca2
2 changed files with 12 additions and 3 deletions

11
.vscode/settings.json vendored
View file

@ -2,6 +2,15 @@
"editor.formatOnSave": true, "editor.formatOnSave": true,
"go.lintTool": "golangci-lint", "go.lintTool": "golangci-lint",
"go.lintFlags": [ "go.lintFlags": [
"--fast" "--path-mode=abs",
"--fast-only"
],
"go.formatTool": "custom",
"go.alternateTools": {
"customFormatter": "golangci-lint-v2"
},
"go.formatFlags": [
"fmt",
"--stdin"
] ]
} }

View file

@ -7,5 +7,5 @@ steps:
commands: commands:
- apk update - apk update
- apk add bash curl jq - apk add bash curl jq
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.0.2 - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.2
- $(go env GOPATH)/bin/golangci-lint run --fast - $(go env GOPATH)/bin/golangci-lint run