Skip to content

Commit

Permalink
ci: set golangci-lint timeout to 3 minutes
Browse files Browse the repository at this point in the history
The 1 minute default timeout was hit by
#741. Use Golang v1.18 for
golangci-lint on the way.

Signed-off-by: Alexandre Perrin <alex@isovalent.com>
  • Loading branch information
kaworu committed Jun 10, 2022
1 parent 795642e commit ace7c28
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# See https://golangci-lint.run/usage/configuration/ for available options.
# Also https://github.com/cilium/cilium/blob/master/.golangci.yaml as a
# reference.
run:
timeout: 3m # default is 1m
linters:
disable-all: true
enable:
Expand All @@ -22,18 +24,18 @@ linters:

linters-settings:
gosimple:
go: "1.17"
go: "1.18"
govet:
enable-all: true
disable:
- fieldalignment
- shadow
staticcheck:
go: "1.17"
go: "1.18"
stylecheck:
go: "1.17"
go: "1.18"
unused:
go: "1.17"
go: "1.18"

issues:
# Default rules exclude Go doc comments check, which is rather unfortunate.
Expand Down

0 comments on commit ace7c28

Please sign in to comment.