Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Oct 9, 2023
1 parent e564135 commit c25d279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 4 additions & 6 deletions pkg/golinters/inamedparam.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import (
)

func NewINamedParam() *goanalysis.Linter {
analyzer := inamedparam.Analyzer
a := inamedparam.Analyzer

return goanalysis.NewLinter(
analyzer.Name,
analyzer.Doc,
[]*analysis.Analyzer{
analyzer,
},
a.Name,
a.Doc,
[]*analysis.Analyzer{a},
nil,
).WithLoadMode(goanalysis.LoadModeSyntax)
}
3 changes: 1 addition & 2 deletions pkg/lint/lintersdb/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithURL("https://github.com/julz/importas"),

linter.NewConfig(golinters.NewINamedParam()).
WithSince("v1.54.0").
WithSince("v1.55.0").
WithPresets(linter.PresetStyle).
WithLoadForGoAnalysis().
WithURL("https://github.com/macabu/inamedparam"),

linter.NewConfig(golinters.NewIneffassign()).
Expand Down

0 comments on commit c25d279

Please sign in to comment.