File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,22 +9,22 @@ import (
9
9
)
10
10
11
11
func New (settings * config.TtempdirSettings ) * goanalysis.Linter {
12
- ttempdirAnalyzer := analyzer .New ()
12
+ a := analyzer .New ()
13
13
14
14
var cfg map [string ]map [string ]any
15
15
if settings != nil {
16
16
cfg = map [string ]map [string ]any {
17
- ttempdirAnalyzer .Name : {
17
+ a .Name : {
18
18
analyzer .FlagAllName : settings .All ,
19
19
analyzer .FlagMaxRecursionLevelName : settings .MaxRecursionLevel ,
20
20
},
21
21
}
22
22
}
23
23
24
24
return goanalysis .NewLinter (
25
- ttempdirAnalyzer .Name ,
26
- ttempdirAnalyzer . Doc ,
27
- []* analysis.Analyzer {ttempdirAnalyzer },
25
+ a .Name ,
26
+ "Detects the use of os.MkdirTemp, ioutil.TempDir or os.TempDir instead of t.TempDir" ,
27
+ []* analysis.Analyzer {a },
28
28
cfg ,
29
29
).WithLoadMode (goanalysis .LoadModeSyntax )
30
30
}
You can’t perform that action at this time.
0 commit comments