Skip to content

Commit 6293bb4

Browse files
committed
Fix items from checklist
- Alphabetized manager.go - Added go glangci.example.yml - Used tag for go.mod
1 parent eaa9d30 commit 6293bb4

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.golangci.example.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,7 @@ linters:
16621662
- goprintffuncname
16631663
- gosec
16641664
- gosimple
1665+
- gosprintfhostport
16651666
- govet
16661667
- ifshort
16671668
- importas
@@ -1752,6 +1753,7 @@ linters:
17521753
- goprintffuncname
17531754
- gosec
17541755
- gosimple
1756+
- gosprintfhostport
17551757
- govet
17561758
- ifshort
17571759
- importas

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ require (
156156
github.com/spf13/afero v1.8.2 // indirect
157157
github.com/spf13/cast v1.4.1 // indirect
158158
github.com/spf13/jwalterweatherman v1.1.0 // indirect
159-
github.com/stbenjam/go-sprintf-host-port v0.0.0-20220406232701-e6c52ffc7e9c // indirect
159+
github.com/stbenjam/go-sprintf-host-port v0.0.1
160160
github.com/stretchr/objx v0.1.1 // indirect
161161
github.com/subosito/gotenv v1.2.0 // indirect
162162
github.com/tklauser/go-sysconf v0.3.10 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/lint/lintersdb/manager.go

Lines changed: 5 additions & 5 deletions
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)