Skip to content

Commit

Permalink
feat(golangci-lint): don't fail fast
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoeinride committed Sep 19, 2024
1 parent 53b1680 commit 7df4c3b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/sggolangcilint/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ func Run(ctx context.Context, args ...string) error {
}); err != nil {
return err
}
var errs []error

Check failure on line 66 in tools/sggolangcilint/tools.go

View workflow job for this annotation

GitHub Actions / build

Consider pre-allocating `errs` (prealloc)
for _, cmd := range commands {
if err := cmd.Wait(); err != nil {
return err
}
errs = append(errs, cmd.Wait())
}
return nil
return errors.Join(errs...)
}

// Run GolangCI-Lint --fix in every Go module from the root of the current git repo.
Expand Down

0 comments on commit 7df4c3b

Please sign in to comment.