From 9a1b9492d6b2ab40fbd069e206444572ea9c9d62 Mon Sep 17 00:00:00 2001 From: Eugene Simonov Date: Mon, 1 Aug 2022 15:22:11 +0300 Subject: [PATCH] ifshort: deprecate linter (#3034) Co-authored-by: Fernandez Ludovic --- pkg/lint/lintersdb/manager.go | 3 ++- test/testdata/ifshort.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/lint/lintersdb/manager.go b/pkg/lint/lintersdb/manager.go index 048143018dc4..2d5174e54a82 100644 --- a/pkg/lint/lintersdb/manager.go +++ b/pkg/lint/lintersdb/manager.go @@ -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"). diff --git a/test/testdata/ifshort.go b/test/testdata/ifshort.go index a960b6de0644..edff1bbe870a 100644 --- a/test/testdata/ifshort.go +++ b/test/testdata/ifshort.go @@ -1,4 +1,4 @@ -//golangcitest:args -Eifshort +//golangcitest:args -Eifshort --internal-cmd-test package testdata func DontUseShortSyntaxWhenPossible() {