forked from contiv/libOpenflow
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.golangci.yml
28 lines (26 loc) · 917 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
run:
tests: true
timeout: 5m
linters-settings:
goimports:
local-prefixes: antrea.io/libOpenflow
gosec:
excludes:
# At the time of writing this, the G115 rule is not even part of an
# official release of gosec. This rule causes a lot of errors to be
# reported in the codebase. While some of the reported errors should be
# addressed, a lot can also be ignored and there are also some clear false
# positives that should not be flagged by gosec in the first place (see
# https://github.com/securego/gosec/issues/1187). We will re-enable this
# rule in the future when it becomes more accurate.
- G115 # Potential integer overflow when converting between integer types
linters:
disable-all: true
enable: # see https://golangci-lint.run/usage/linters/
- unused
- staticcheck
- govet
- gofmt
- goimports
- gosec
- misspell