Skip to content

Commit abe86d1

Browse files
committed
review
1 parent 98c486b commit abe86d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: pkg/golinters/goanalysis/runners.go

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ func runAnalyzers(cfg runAnalyzersConfig, lintCtx *linter.Context) ([]result.Iss
6767
}
6868

6969
// keep only unique packages
70+
slices.SortFunc(pkgsToAnalyze, func(a, b *packages.Package) int {
71+
return strings.Compare(a.PkgPath, b.PkgPath)
72+
})
7073
pkgsToAnalyze = slices.Compact(pkgsToAnalyze)
7174

7275
diags, errs, passToPkg := runner.run(cfg.getAnalyzers(), pkgsToAnalyze)

0 commit comments

Comments
 (0)