Skip to content

Commit 9a1b949

Browse files
esimonovldez
andauthored
ifshort: deprecate linter (#3034)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent f8f8f9a commit 9a1b949

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/lint/lintersdb/manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
541541
linter.NewConfig(golinters.NewIfshort(ifshortCfg)).
542542
WithSince("v1.36.0").
543543
WithPresets(linter.PresetStyle).
544-
WithURL("https://github.com/esimonov/ifshort"),
544+
WithURL("https://github.com/esimonov/ifshort").
545+
Deprecated("The repository of the linter has been deprecated by the owner.", "v1.48.0", ""),
545546

546547
linter.NewConfig(golinters.NewImportAs(importAsCfg)).
547548
WithSince("v1.38.0").

test/testdata/ifshort.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//golangcitest:args -Eifshort
1+
//golangcitest:args -Eifshort --internal-cmd-test
22
package testdata
33

44
func DontUseShortSyntaxWhenPossible() {

0 commit comments

Comments
 (0)