forked from rancher/distros-test-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
100 lines (97 loc) · 2.35 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
linters:
enable:
- gofmt
- govet
- revive
- gosec
- misspell
- exportloopref
- dupl
- gosimple
- staticcheck
- nlreturn
- funlen
- gocritic
- godot
- perfsprint
- usestdlibvars
- whitespace
linters-settings:
funlen:
lines: 55
gocritic:
enabled-tags:
- diagnostic
- style
- performance
- experimental
misspell:
locale: "US"
gofmt:
simplify: true
govet:
check-shadowing: true
gci:
local-prefixes: github.com/rancher/distros-test-framework
nlreturn:
block-size: 4
revive:
confidence: 0.8
severity: error
ignore-generated-header: true
rules:
- name: line-length-limit
arguments: [125]
- 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: 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: unhandled-error
arguments: ["fmt.Printf", "builder.WriteString"]
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-parameter
- name: unused-receiver
run:
skip-files:
- "pkg/testcase/selinux.go"
- ".*_suite_test.go"
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'
- linters: [nlreturn]
text: 'continue with no blank line before'
- linters: [revive]
text: 'should not use dot imports '