Skip to content

Commit e234cfc

Browse files
committed
go/lint: allow setting more golangci-lint flags
We will often want to tweak these CLI flags, so there needs to be support for doing so. Related: golangci/golangci-lint#2239
1 parent 06d4dac commit e234cfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: go/lint-project.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ if [[ "$OS_NAME" != "windows" ]]; then
175175
fi
176176

177177
./bin/golangci-lint --version
178-
./bin/golangci-lint run "$enabled" --verbose --skip-dirs="(admin|client)" --timeout=5m --disable=errcheck
178+
./bin/golangci-lint run "$enabled" "$GOLANGCI_FLAGS" --verbose --skip-dirs="(admin|client)" --timeout=5m --disable=errcheck
179179

180180
echo "finished golangci-lint check"
181181
fi

Diff for: makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PLATFORM=$(shell uname -s | tr '[:upper:]' '[:lower:]')
22

33
.PHONY: check
44
check:
5-
EXPERIMENTAL=gitleaks GOCYCLO_LIMIT=15 ./go/lint-project.sh
5+
EXPERIMENTAL=gitleaks GOCYCLO_LIMIT=15 GOLANGCI_FLAGS="--exclude-use-default=false" ./go/lint-project.sh
66

77
.PHONY: clean
88
clean:

0 commit comments

Comments
 (0)