Skip to content

Commit 0e33a46

Browse files
committed
Pass lint config
1 parent a4ffe29 commit 0e33a46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/lint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env bash
22

33
set -eEuo pipefail
4+
PROJECT_DIR="$( cd "$( dirname "$0" )/.." && pwd )"
45

56
# Install golangci-lint if not already installed
67
if ! command -v golangci-lint &> /dev/null; then
78
echo "golangci-lint not found, installing..."
89
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
910
fi
1011

11-
golangci-lint run "$@"
12-
12+
golangci-lint run "$@" -c "${PROJECT_DIR}/.golangci.yml" --timeout 10m
1313

0 commit comments

Comments
 (0)