Skip to content

Commit b459de6

Browse files
committed
Set the --deadline flag of golangci-lint to 5m.
Currently, the deadline is set to the defalut value (1m), which is too short to finish the linters sometimes, and causes error: ERRO [runner] 0/12 linters finished: deadline exceeded ERRO Deadline exceeded: try increase it by passing --deadline option
1 parent 4d4e7df commit b459de6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ golangci-lint run --disable-all \
123123
--enable=misspell \
124124
--enable=gocyclo \
125125
--enable=gosec \
126+
--deadline=5m \
126127
./pkg/... ./cmd/...
127128

128129
# --enable=structcheck \ # doesn't understand embedded structs

0 commit comments

Comments
 (0)