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 a4ffe29 commit 0e33a46Copy full SHA for 0e33a46
script/lint
@@ -1,13 +1,13 @@
1
#!/usr/bin/env bash
2
3
set -eEuo pipefail
4
+PROJECT_DIR="$( cd "$( dirname "$0" )/.." && pwd )"
5
6
# Install golangci-lint if not already installed
7
if ! command -v golangci-lint &> /dev/null; then
8
echo "golangci-lint not found, installing..."
9
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
10
fi
11
-golangci-lint run "$@"
12
-
+golangci-lint run "$@" -c "${PROJECT_DIR}/.golangci.yml" --timeout 10m
13
0 commit comments