File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package lintersdb
2
2
3
3
import (
4
4
"fmt"
5
+ "os"
5
6
"path/filepath"
6
7
"plugin"
7
8
@@ -115,8 +116,11 @@ func (m *Manager) lookupAnalyzerPlugin(plug *plugin.Plugin) ([]*analysis.Analyze
115
116
return nil , err
116
117
}
117
118
118
- m .log .Warnf ("plugin: 'AnalyzerPlugin' plugins are deprecated, please use the new plugin signature: " +
119
- "https://golangci-lint.run/contributing/new-linters/#create-a-plugin" )
119
+ // TODO(ldez): remove this env var in the next minor version (v1.55.0)
120
+ if os .Getenv ("GOLANGCI_LINT_HIDE_WARNING_ABOUT_PLUGIN_API_DEPRECATION" ) != "1" {
121
+ m .log .Warnf ("plugin: 'AnalyzerPlugin' plugins are deprecated, please use the new plugin signature: " +
122
+ "https://golangci-lint.run/contributing/new-linters/#create-a-plugin" )
123
+ }
120
124
121
125
analyzerPlugin , ok := symbol .(AnalyzerPlugin )
122
126
if ! ok {
You can’t perform that action at this time.
0 commit comments