We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9560caf commit a4ffe29Copy full SHA for a4ffe29
script/lint
@@ -2,8 +2,12 @@
2
3
set -eEuo pipefail
4
5
-# golangci-lint config file is .golangci.yaml
6
-# --out-format=json --print-issued-lines=false --print-linter-name=false
+# Install golangci-lint if not already installed
+if ! command -v golangci-lint &> /dev/null; then
7
+ echo "golangci-lint not found, installing..."
8
+ go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
9
+fi
10
+
11
golangci-lint run "$@"
12
13
0 commit comments