forked from rancher/distros-test-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
78 lines (75 loc) · 1.96 KB
/
.golangci.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
linters:
enable:
- gofmt
- govet
- revive
- gosec
- misspell
- dupl
- exportloopref
- dupl
linters-settings:
govet:
check-shadowing: true
gci:
local-prefixes: github.com/rancher/distros-test-framework
gosec:
issues:
- G306
- G106
revive:
confidence: 0.8
severity: warning
ignore-generated-header: true
rules:
- name: line-length-limit
arguments: [110]
- name: cognitive-complexity
arguments: [10]
- name: bare-return
- name: blank-imports
- name: confusing-results
- name: duplicated-imports
- name: early-return
- name: empty-block
- name: error-naming
- name: error-return
- name: error-strings
- name: errorf
- name: exported
- name: get-return
- name: if-return
- name: increment-decrement
- name: indent-error-flow
- name: import-shadowing
- name: modifies-parameter
- name: modifies-value-receiver
- name: range
- name: range-val-in-closure
- name: receiver-naming
- name: string-of-int
- name: struct-tag
- name: superfluous-else
- name: time-naming
- name: var-declaration
- name: unconditional-recursion
- name: unexported-naming
- name: unexported-return
- name: unhandled-error
arguments: ["fmt.Printf", "builder.WriteString"]
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-parameter
- name: unused-receiver
issues:
exclude-rules:
- linters: [typecheck]
text: "command-line-arguments"
- linters: [gosec]
text: "G106: Use of ssh InsecureIgnoreHostKey should be audited"
- linters: [gosec]
text: "G306: Expect WriteFile permissions to be 0600 or less"
- linters: [revive]
text: 'Unhandled error in call to function fmt\.Println'
- linters: [govet]
text: '`fmt\.Println` arg list ends with redundant newline'