Skip to content

Commit d2d8975

Browse files
feat: run staticcheck in serial mode
the way we collate all file arguments into their respective packages, parallelization by pre-commit is counter-productive, as files from the same packages can end up in different invocations of staticcheck, resulting in the same package being run several times.
1 parent 936478c commit d2d8975

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.pre-commit-hooks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
files: '\.go$'
4747
language: "script"
4848
description: "Runs `staticcheck`, install https://staticcheck.io/docs/"
49+
require_serial: true
4950

5051
- id: golangci-lint
5152
name: "go golangci-lint"

0 commit comments

Comments
 (0)