File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package lintersdb
22
33import (
44 "fmt"
5+ "os"
56 "path/filepath"
67 "plugin"
78
@@ -115,8 +116,11 @@ func (m *Manager) lookupAnalyzerPlugin(plug *plugin.Plugin) ([]*analysis.Analyze
115116 return nil , err
116117 }
117118
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 (but keep the log) in the next minor version (v1.55.0)
120+ if _ , ok := os .LookupEnv ("GOLANGCI_LINT_HIDE_WARNING_ABOUT_PLUGIN_API_DEPRECATION" ); ! ok {
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+ }
120124
121125 analyzerPlugin , ok := symbol .(AnalyzerPlugin )
122126 if ! ok {
You can’t perform that action at this time.
0 commit comments