Skip to content

Commit

Permalink
Fix items from checklist
Browse files Browse the repository at this point in the history
- Alphabetized manager.go
- Added go glangci.example.yml
- Used tag for go.mod
  • Loading branch information
stbenjam committed Apr 22, 2022
1 parent eaa9d30 commit 6293bb4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .golangci.example.yml
Expand Up @@ -1662,6 +1662,7 @@ linters:
- goprintffuncname
- gosec
- gosimple
- gosprintfhostport
- govet
- ifshort
- importas
Expand Down Expand Up @@ -1752,6 +1753,7 @@ linters:
- goprintffuncname
- gosec
- gosimple
- gosprintfhostport
- govet
- ifshort
- importas
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -156,7 +156,7 @@ require (
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/stbenjam/go-sprintf-host-port v0.0.0-20220406232701-e6c52ffc7e9c // indirect
github.com/stbenjam/go-sprintf-host-port v0.0.1
github.com/stretchr/objx v0.1.1 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pkg/lint/lintersdb/manager.go
Expand Up @@ -407,11 +407,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithPresets(linter.PresetStyle).
WithURL("https://github.com/jirfag/go-printf-func-name"),

linter.NewConfig(golinters.NewGoSprintfHostPort()).
WithSince("v1.46.0").
WithPresets(linter.PresetStyle).
WithURL("https://github.com/stbenjam/go-sprintf-host-port"),

linter.NewConfig(golinters.NewGosec(gosecCfg)).
WithSince("v1.0.0").
WithLoadForGoAnalysis().
Expand All @@ -426,6 +421,11 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithAlternativeNames(megacheckName).
WithURL("https://github.com/dominikh/go-tools/tree/master/simple"),

linter.NewConfig(golinters.NewGoSprintfHostPort()).
WithSince("v1.46.0").
WithPresets(linter.PresetStyle).
WithURL("https://github.com/stbenjam/go-sprintf-host-port"),

linter.NewConfig(golinters.NewGovet(govetCfg)).
WithSince("v1.0.0").
WithLoadForGoAnalysis().
Expand Down

0 comments on commit 6293bb4

Please sign in to comment.