Skip to content

Commit f86b00c

Browse files
committed
review
1 parent d6a8cb6 commit f86b00c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/golinters/ttempdir/ttempdir.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ import (
99
)
1010

1111
func New(settings *config.TtempdirSettings) *goanalysis.Linter {
12-
ttempdirAnalyzer := analyzer.New()
12+
a := analyzer.New()
1313

1414
var cfg map[string]map[string]any
1515
if settings != nil {
1616
cfg = map[string]map[string]any{
17-
ttempdirAnalyzer.Name: {
17+
a.Name: {
1818
analyzer.FlagAllName: settings.All,
1919
analyzer.FlagMaxRecursionLevelName: settings.MaxRecursionLevel,
2020
},
2121
}
2222
}
2323

2424
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},
2828
cfg,
2929
).WithLoadMode(goanalysis.LoadModeSyntax)
3030
}

0 commit comments

Comments
 (0)