@@ -14,14 +14,14 @@ import (
1414 "github.com/golangci/golangci-lint/pkg/result"
1515)
1616
17- const name = "forbidigo"
17+ const linterName = "forbidigo"
1818
1919func New (settings * config.ForbidigoSettings ) * goanalysis.Linter {
2020 var mu sync.Mutex
2121 var resIssues []goanalysis.Issue
2222
2323 analyzer := & analysis.Analyzer {
24- Name : name ,
24+ Name : linterName ,
2525 Doc : goanalysis .TheOnlyanalyzerDoc ,
2626 Run : func (pass * analysis.Pass ) (any , error ) {
2727 issues , err := runForbidigo (pass , settings )
@@ -44,7 +44,7 @@ func New(settings *config.ForbidigoSettings) *goanalysis.Linter {
4444 // But we cannot make this depend on the settings and have to mirror the mode chosen in GetAllSupportedLinterConfigs,
4545 // therefore we have to use LoadModeTypesInfo in all cases.
4646 return goanalysis .NewLinter (
47- name ,
47+ linterName ,
4848 "Forbids identifiers" ,
4949 []* analysis.Analyzer {analyzer },
5050 nil ,
@@ -73,7 +73,7 @@ func runForbidigo(pass *analysis.Pass, settings *config.ForbidigoSettings) ([]go
7373
7474 forbid , err := forbidigo .NewLinter (patterns , options ... )
7575 if err != nil {
76- return nil , fmt .Errorf ("failed to create linter %q: %w" , name , err )
76+ return nil , fmt .Errorf ("failed to create linter %q: %w" , linterName , err )
7777 }
7878
7979 var issues []goanalysis.Issue
@@ -94,7 +94,7 @@ func runForbidigo(pass *analysis.Pass, settings *config.ForbidigoSettings) ([]go
9494 issues = append (issues , goanalysis .NewIssue (& result.Issue {
9595 Pos : hint .Position (),
9696 Text : hint .Details (),
97- FromLinter : name ,
97+ FromLinter : linterName ,
9898 }, pass ))
9999 }
100100 }
0 commit comments