Skip to content

Commit 21271d0

Browse files
committed
go/lint: require unused linter
See: golangci/golangci-lint#3125
1 parent 7e833a1 commit 21271d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/lint-project.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fi
151151
if [[ "$OS_NAME" != "windows" ]]; then
152152
wget -q -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$golangci_version"
153153

154-
enabled="-E=asciicheck,bidichk,bodyclose,exhaustive,durationcheck,gosec,misspell,nolintlint,rowserrcheck,sqlclosecheck"
154+
enabled="-E=asciicheck,bidichk,bodyclose,exhaustive,durationcheck,gosec,misspell,nolintlint,rowserrcheck,sqlclosecheck,unused"
155155
if [ -n "$GOLANGCI_LINTERS" ];
156156
then
157157
enabled="$enabled"",$GOLANGCI_LINTERS"

0 commit comments

Comments
 (0)