forked from TrueCloudLab/linters
22 lines
509 B
Go
22 lines
509 B
Go
package main
|
|
|
|
import (
|
|
noliteral "git.frostfs.info/TrueCloudLab/linters/internal/analyzers/no-literal"
|
|
"golang.org/x/tools/go/analysis"
|
|
)
|
|
|
|
var AnalyzerPlugin analyzerPlugin
|
|
|
|
type analyzerPlugin struct{}
|
|
|
|
// for version ci-lint < '1.5.4'.
|
|
func (*analyzerPlugin) GetAnalyzers() []*analysis.Analyzer {
|
|
return []*analysis.Analyzer{noliteral.LogsAnalyzer}
|
|
}
|
|
|
|
/*
|
|
// for version ci-lint >= '1.5.4'.
|
|
func New(conf any) ([]*analysis.Analyzer, error) {
|
|
return []*analysis.Analyzer{noliteral.LogsAnalyzer}, nil
|
|
}
|
|
*/
|