File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 6
6
- deadcode
7
7
- depguard
8
8
- dogsled
9
- - exportloopref
10
9
- errcheck
11
10
- exportloopref
12
11
- goconst
@@ -19,8 +18,8 @@ linters:
19
18
- gosec
20
19
- gosimple
21
20
- govet
22
- - importas
23
21
- ifshort
22
+ - importas
24
23
- ineffassign
25
24
- misspell
26
25
- nakedret
@@ -72,15 +71,21 @@ issues:
72
71
exclude-use-default : false
73
72
# List of regexps of issue texts to exclude, empty list by default.
74
73
exclude :
75
- - " G108: Profiling endpoint is automatically exposed on /debug/pprof"
76
- - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
77
- - " exported: exported method .*\\ .(Reconcile|SetupWithManager|SetupWebhookWithManager) should have comment or be unexported"
78
74
# The following are being worked on to remove their exclusion. This list should be reduced or go away all together over time.
79
75
# If it is decided they will not be addressed they should be moved above this comment.
80
76
- Subprocess launch(ed with variable|ing should be audited)
81
77
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
82
78
- (G104|G307)
83
79
exclude-rules :
80
+ - linters :
81
+ - gosec
82
+ text : " G108: Profiling endpoint is automatically exposed on /debug/pprof"
83
+ - linters :
84
+ - revive
85
+ text : " exported: exported method .*\\ .(Reconcile|SetupWithManager|SetupWebhookWithManager) should have comment or be unexported"
86
+ - linters :
87
+ - errcheck
88
+ text : Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
84
89
# With Go 1.16, the new embed directive can be used with an un-named import,
85
90
# revive (previously, golint) only allows these to be imported in a main.go, which wouldn't work for us.
86
91
# This directive allows the embed package to be imported with an underscore everywhere.
You can’t perform that action at this time.
0 commit comments