Addressed naming convention (#859)
This commit is contained in:
parent
bd2921655a
commit
ca432c464a
@ -1,15 +1,15 @@
|
|||||||
package golinters
|
package golinters
|
||||||
|
|
||||||
import (
|
import (
|
||||||
magic_numbers "github.com/tommy-muehle/go-mnd"
|
mnd "github.com/tommy-muehle/go-mnd"
|
||||||
"golang.org/x/tools/go/analysis"
|
"golang.org/x/tools/go/analysis"
|
||||||
|
|
||||||
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
|
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewGomnd() *goanalysis.Linter {
|
func NewGoMND() *goanalysis.Linter {
|
||||||
analyzers := []*analysis.Analyzer{
|
analyzers := []*analysis.Analyzer{
|
||||||
magic_numbers.Analyzer,
|
mnd.Analyzer,
|
||||||
}
|
}
|
||||||
|
|
||||||
return goanalysis.NewLinter(
|
return goanalysis.NewLinter(
|
||||||
|
@ -208,7 +208,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||||||
linter.NewConfig(golinters.NewWSL()).
|
linter.NewConfig(golinters.NewWSL()).
|
||||||
WithPresets(linter.PresetStyle).
|
WithPresets(linter.PresetStyle).
|
||||||
WithURL("https://github.com/bombsimon/wsl"),
|
WithURL("https://github.com/bombsimon/wsl"),
|
||||||
linter.NewConfig(golinters.NewGomnd()).
|
linter.NewConfig(golinters.NewGoMND()).
|
||||||
WithPresets(linter.PresetStyle).
|
WithPresets(linter.PresetStyle).
|
||||||
WithURL("https://github.com/tommy-muehle/go-mnd"),
|
WithURL("https://github.com/tommy-muehle/go-mnd"),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user