Addressed naming convention (#859)

This commit is contained in:
sayboras 2019-11-17 01:33:46 +11:00 committed by Trevor Pounds
parent bd2921655a
commit ca432c464a
2 changed files with 4 additions and 4 deletions

View File

@ -1,15 +1,15 @@
package golinters
import (
magic_numbers "github.com/tommy-muehle/go-mnd"
mnd "github.com/tommy-muehle/go-mnd"
"golang.org/x/tools/go/analysis"
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
)
func NewGomnd() *goanalysis.Linter {
func NewGoMND() *goanalysis.Linter {
analyzers := []*analysis.Analyzer{
magic_numbers.Analyzer,
mnd.Analyzer,
}
return goanalysis.NewLinter(

View File

@ -208,7 +208,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
linter.NewConfig(golinters.NewWSL()).
WithPresets(linter.PresetStyle).
WithURL("https://github.com/bombsimon/wsl"),
linter.NewConfig(golinters.NewGomnd()).
linter.NewConfig(golinters.NewGoMND()).
WithPresets(linter.PresetStyle).
WithURL("https://github.com/tommy-muehle/go-mnd"),
}