diff --git a/lint/linter.go b/lint/linter.go index d16f2dca2..f00facad1 100644 --- a/lint/linter.go +++ b/lint/linter.go @@ -102,8 +102,8 @@ func (l *Linter) Lint(packages [][]string, ruleSet []Rule, config Config) (<-cha } var wg sync.WaitGroup + wg.Add(len(packages)) for n := range packages { - wg.Add(1) go func(pkg []string, gover *goversion.Version) { if err := l.lintPackage(pkg, gover, ruleSet, config, failures); err != nil { fmt.Fprintln(os.Stderr, err)