6
6
- deadcode
7
7
- depguard
8
8
- dogsled
9
+ - exportloopref
9
10
- errcheck
10
11
- goconst
11
12
- gocritic
@@ -23,11 +24,9 @@ linters:
23
24
- nolintlint
24
25
- prealloc
25
26
- rowserrcheck
26
- - scopelint
27
27
- staticcheck
28
28
- structcheck
29
29
- stylecheck
30
- - testpackage
31
30
- typecheck
32
31
- unconvert
33
32
- unparam
@@ -43,20 +42,44 @@ issues:
43
42
exclude-use-default : false
44
43
# List of regexps of issue texts to exclude, empty list by default.
45
44
exclude :
46
- - Using the variable on range scope `(tc)|(rt)|(tt)|(test)|(testcase)|(testCase)` in function literal
47
- - " G108: Profiling endpoint is automatically exposed on /debug/pprof"
48
- - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
49
- # The following are being worked on to remove their exclusion. This list should be reduced or go away all together over time.
50
- # If it is decided they will not be addressed they should be moved above this comment.
51
- - Subprocess launch(ed with variable|ing should be audited)
52
- - (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
53
- - (G104|G307)
45
+ - " G108: Profiling endpoint is automatically exposed on /debug/pprof"
46
+ - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
47
+ - exported method `.*.Reconcile` should have comment or be unexported
48
+ - exported method `.*.SetupWithManager` should have comment or be unexported
49
+ # The following are being worked on to remove their exclusion. This list should be reduced or go away all together over time.
50
+ # If it is decided they will not be addressed they should be moved above this comment.
51
+ - Subprocess launch(ed with variable|ing should be audited)
52
+ - (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
53
+ - (G104|G307)
54
+ - exported (method|function|type|const) (.+) should have comment or be unexported
55
+ exclude-rules :
56
+ # With Go 1.16, the new embed directive can be used with an un-named import,
57
+ # golint only allows these to be imported in a main.go, which wouldn't work for us.
58
+ # This directive allows the embed package to be imported with an underscore everywhere.
59
+ - linters :
60
+ - golint
61
+ source : _ "embed"
62
+ # Disable unparam "always receives" which might not be really
63
+ # useful when building libraries.
64
+ - linters :
65
+ - unparam
66
+ text : always receives
67
+ # Dot imports for gomega or ginkgo are allowed
68
+ # within test files.
69
+ - path : _test\.go
70
+ text : should not use dot imports
71
+ - path : _test\.go
72
+ text : cyclomatic complexity
73
+ - path : test/framework.*.go
74
+ text : should not use dot imports
75
+ - path : test/e2e.*.go
76
+ text : should not use dot imports
54
77
55
78
run :
56
79
timeout : 10m
57
80
skip-files :
58
- - " zz_generated.*\\ .go$"
59
- - " .*conversion.*\\ .go$"
81
+ - " zz_generated.*\\ .go$"
82
+ - " .*conversion.*\\ .go$"
60
83
skip-dirs :
61
- - third_party
84
+ - third_party
62
85
allow-parallel-runners : true
0 commit comments