Skip to content

Commit

Permalink
ifshort: deprecate linter (#3034)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <[email protected]>
  • Loading branch information
esimonov and ldez authored Aug 1, 2022
1 parent f8f8f9a commit 9a1b949
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//golangcitest:args -Eifshort
//golangcitest:args -Eifshort --internal-cmd-test
package testdata

func DontUseShortSyntaxWhenPossible() {
Expand Down

0 comments on commit 9a1b949

Please sign in to comment.