Skip to content

Commit

Permalink
ifshort: deprecate linter (golangci#3034)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
2 people authored and SeigeC committed Apr 4, 2023
1 parent bf9b217 commit ac600e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/lint/lintersdb/manager.go
Expand Up @@ -541,7 +541,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
linter.NewConfig(golinters.NewIfshort(ifshortCfg)).
WithSince("v1.36.0").
WithPresets(linter.PresetStyle).
WithURL("https://github.com/esimonov/ifshort"),
WithURL("https://github.com/esimonov/ifshort").
Deprecated("The repository of the linter has been deprecated by the owner.", "v1.48.0", ""),

linter.NewConfig(golinters.NewImportAs(importAsCfg)).
WithSince("v1.38.0").
Expand Down
2 changes: 1 addition & 1 deletion test/testdata/ifshort.go
@@ -1,4 +1,4 @@
//golangcitest:args -Eifshort
//golangcitest:args -Eifshort --internal-cmd-test
package testdata

func DontUseShortSyntaxWhenPossible() {
Expand Down

0 comments on commit ac600e0

Please sign in to comment.