diff --git a/.vscode/settings.json b/.vscode/settings.json index 017bdb7..d1dcd6f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,15 @@ "editor.formatOnSave": true, "go.lintTool": "golangci-lint", "go.lintFlags": [ - "--fast" + "--path-mode=abs", + "--fast-only" + ], + "go.formatTool": "custom", + "go.alternateTools": { + "customFormatter": "golangci-lint-v2" + }, + "go.formatFlags": [ + "fmt", + "--stdin" ] } \ No newline at end of file diff --git a/build/ci/.lint.yml b/build/ci/.lint.yml index 1c137af..ca446f1 100644 --- a/build/ci/.lint.yml +++ b/build/ci/.lint.yml @@ -7,5 +7,5 @@ steps: commands: - apk update - 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 - - $(go env GOPATH)/bin/golangci-lint run --fast + - 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