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 (
1111func NewPerfSprint (settings * config.PerfSprintSettings ) * goanalysis.Linter {
1212 a := analyzer .New ()
1313
14- var cfg map [string ]map [string ]any
14+ cfg := map [string ]map [string ]any {
15+ a .Name : {"fiximports" : false },
16+ }
17+
1518 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
2423 }
2524
2625 return goanalysis .NewLinter (
You can’t perform that action at this time.
0 commit comments