Update VSCode settings and CI lint configuration: modify Go lint flags for improved performance and update golangci-lint version to 2.1.2.
This commit is contained in:
parent
edc9aeb471
commit
f8f0f0eca2
2 changed files with 12 additions and 3 deletions
11
.vscode/settings.json
vendored
11
.vscode/settings.json
vendored
|
@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue