Skip to content

Commit d8a4c12

Browse files
committed
Fix items from checklist
- Alphabetized manager.go - Added go glangci.example.yml - Used tag for go.mod
1 parent 031f4a6 commit d8a4c12

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.golangci.example.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1660,6 +1660,7 @@ linters:
16601660
- goprintffuncname
16611661
- gosec
16621662
- gosimple
1663+
- gosprintfhostport
16631664
- govet
16641665
- ifshort
16651666
- importas
@@ -1750,6 +1751,7 @@ linters:
17501751
- goprintffuncname
17511752
- gosec
17521753
- gosimple
1754+
- gosprintfhostport
17531755
- govet
17541756
- ifshort
17551757
- importas

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ require (
153153
github.com/spf13/afero v1.6.0 // indirect
154154
github.com/spf13/cast v1.4.1 // indirect
155155
github.com/spf13/jwalterweatherman v1.1.0 // indirect
156-
github.com/stbenjam/go-sprintf-host-port v0.0.0-20220406232701-e6c52ffc7e9c // indirect
156+
github.com/stbenjam/go-sprintf-host-port v0.0.1
157157
github.com/stretchr/objx v0.1.1 // indirect
158158
github.com/subosito/gotenv v1.2.0 // indirect
159159
github.com/tklauser/go-sysconf v0.3.10 // indirect

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/lint/lintersdb/manager.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
407407
WithPresets(linter.PresetStyle).
408408
WithURL("https://github.com/jirfag/go-printf-func-name"),
409409

410-
linter.NewConfig(golinters.NewGoSprintfHostPort()).
411-
WithSince("v1.46.0").
412-
WithPresets(linter.PresetStyle).
413-
WithURL("https://github.com/stbenjam/go-sprintf-host-port"),
414-
415410
linter.NewConfig(golinters.NewGosec(gosecCfg)).
416411
WithSince("v1.0.0").
417412
WithLoadForGoAnalysis().
@@ -426,6 +421,11 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
426421
WithAlternativeNames(megacheckName).
427422
WithURL("https://github.com/dominikh/go-tools/tree/master/simple"),
428423

424+
linter.NewConfig(golinters.NewGoSprintfHostPort()).
425+
WithSince("v1.46.0").
426+
WithPresets(linter.PresetStyle).
427+
WithURL("https://github.com/stbenjam/go-sprintf-host-port"),
428+
429429
linter.NewConfig(golinters.NewGovet(govetCfg)).
430430
WithSince("v1.0.0").
431431
WithLoadForGoAnalysis().

0 commit comments

Comments
 (0)