forked from openservicemesh/osm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
48 lines (44 loc) · 1.06 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
46
47
run:
tests: true
timeout: 20m
skip-dirs:
- pkg/gen
skip-files:
- "zz_generated.deepcopy.go$"
linters:
enable:
- goconst
- gocyclo
- gofmt
- goimports
- gosec
- govet
- misspell
- revive
- unused
- whitespace
linters-settings:
goimports:
local-prefixes: github.com/openservicemesh/osm
issues:
exclude-rules:
# Ignore error for ginkgo and gomega dot imports
- linters:
- revive
source: ". \"github.com/onsi/(ginkgo|gomega)\""
text: "dot imports"
# Ignore error for test framework imports
- linters:
- revive
source: ". \"github.com/openservicemesh/osm/tests/framework\""
text: "dot imports"
# Ignore error for package comments
- linters:
- revive
text: "package-comments: should have a package comment"
# Exclude staticcheck messages for deprecated function, variable or constant
# This causes issues with package github.com/golang/protobuf/proto
- linters:
- staticcheck
text: "SA1019:"
exclude-use-default: false