forked from okta/okta-idx-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
64 lines (61 loc) · 1.11 KB
/
Copy path.golangci.yml
File metadata and controls
64 lines (61 loc) · 1.11 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
min-complexity: 13
cyclop:
max-complexity: 15
skip-tests: true
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
misspell:
locale: US
lll:
line-length: 150
gocritic:
enabled-tags:
- performance
- style
- experimental
disabled-checks:
- hugeParam
- wrapperFunc
- dupImport # https://github.com/go-critic/go-critic/issues/845
- whyNoLint
nolintlint:
# Enable to ensure that nolint directives are all used. Default is true.
allow-unused: true
require-explanation: false
require-specific: false
linters:
enable-all: true
disable:
- gochecknoglobals
- wsl
- godot
- goerr113
- exhaustivestruct
- nlreturn
- testpackage
- bodyclose
- exhaustive
- revive
- tagliatelle
- wrapcheck
run:
skip-dirs:
- vendor
- auth
- data
skip-files:
- ".+_test.go"
issues:
exclude-rules:
- text: "weak cryptographic primitive"
linters:
- gosec