ifshort: deprecate linter (#3034)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
f8f8f9a6e7
commit
9a1b9492d6
@ -541,7 +541,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||||||
linter.NewConfig(golinters.NewIfshort(ifshortCfg)).
|
linter.NewConfig(golinters.NewIfshort(ifshortCfg)).
|
||||||
WithSince("v1.36.0").
|
WithSince("v1.36.0").
|
||||||
WithPresets(linter.PresetStyle).
|
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)).
|
linter.NewConfig(golinters.NewImportAs(importAsCfg)).
|
||||||
WithSince("v1.38.0").
|
WithSince("v1.38.0").
|
||||||
|
2
test/testdata/ifshort.go
vendored
2
test/testdata/ifshort.go
vendored
@ -1,4 +1,4 @@
|
|||||||
//golangcitest:args -Eifshort
|
//golangcitest:args -Eifshort --internal-cmd-test
|
||||||
package testdata
|
package testdata
|
||||||
|
|
||||||
func DontUseShortSyntaxWhenPossible() {
|
func DontUseShortSyntaxWhenPossible() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user