File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,15 @@ import (
11
11
func NewPerfSprint (settings * config.PerfSprintSettings ) * goanalysis.Linter {
12
12
a := analyzer .New ()
13
13
14
- var cfg map [string ]map [string ]any
14
+ cfg := map [string ]map [string ]any {
15
+ a .Name : {"fiximports" : false },
16
+ }
17
+
15
18
if settings != nil {
16
- cfg = map [string ]map [string ]any {
17
- a .Name : {
18
- "int-conversion" : settings .IntConversion ,
19
- "err-error" : settings .ErrError ,
20
- "errorf" : settings .ErrorF ,
21
- "sprintf1" : settings .SprintF1 ,
22
- },
23
- }
19
+ cfg [a .Name ]["int-conversion" ] = settings .IntConversion
20
+ cfg [a .Name ]["err-error" ] = settings .ErrError
21
+ cfg [a .Name ]["errorf" ] = settings .ErrorF
22
+ cfg [a .Name ]["sprintf1" ] = settings .SprintF1
24
23
}
25
24
26
25
return goanalysis .NewLinter (
You can’t perform that action at this time.
0 commit comments