-
Notifications
You must be signed in to change notification settings - Fork 367
/
.golangci.yml
45 lines (43 loc) · 1.22 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# golangci-lint configuration used for CI
run:
tests: true
timeout: 15m
linters-settings:
goimports:
local-prefixes: antrea.io/antrea
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
misspell:
ignore-words:
- creater
revive:
ignore-generated-header: false
severity: warning
confidence: 0.8
rules:
- name: unreachable-code
- name: errorf
- name: range
- name: superfluous-else
- name: var-declaration
- name: duplicated-imports
linters:
disable-all: true
enable:
- misspell
- gofmt
- unused
- staticcheck
- gosec
- goimports
- govet
- revive
- loggercheck