We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b8408 commit 455ff93Copy full SHA for 455ff93
pkg/golinters/gomoddirectives/gomoddirectives.go
@@ -40,7 +40,7 @@ func New(settings *config.GoModDirectivesSettings) *goanalysis.Linter {
40
).WithContextSetter(func(lintCtx *linter.Context) {
41
analyzer.Run = func(pass *analysis.Pass) (any, error) {
42
once.Do(func() {
43
- results, err := gomoddirectives.Analyze(opts)
+ results, err := gomoddirectives.AnalyzePass(pass, opts)
44
if err != nil {
45
lintCtx.Log.Warnf("running %s failed: %s: "+
46
"if you are not using go modules it is suggested to disable this linter", linterName, err)
0 commit comments