Skip to content

Commit ca432c4

Browse files
sayborastpounds
authored andcommitted
Addressed naming convention (#859)
1 parent bd29216 commit ca432c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/golinters/gomnd.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package golinters
22

33
import (
4-
magic_numbers "github.com/tommy-muehle/go-mnd"
4+
mnd "github.com/tommy-muehle/go-mnd"
55
"golang.org/x/tools/go/analysis"
66

77
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
88
)
99

10-
func NewGomnd() *goanalysis.Linter {
10+
func NewGoMND() *goanalysis.Linter {
1111
analyzers := []*analysis.Analyzer{
12-
magic_numbers.Analyzer,
12+
mnd.Analyzer,
1313
}
1414

1515
return goanalysis.NewLinter(

pkg/lint/lintersdb/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
208208
linter.NewConfig(golinters.NewWSL()).
209209
WithPresets(linter.PresetStyle).
210210
WithURL("https://github.com/bombsimon/wsl"),
211-
linter.NewConfig(golinters.NewGomnd()).
211+
linter.NewConfig(golinters.NewGoMND()).
212212
WithPresets(linter.PresetStyle).
213213
WithURL("https://github.com/tommy-muehle/go-mnd"),
214214
}

0 commit comments

Comments
 (0)