Open TylerYep opened 1 year ago
This would be very nice to have if possible, since it also means I could leverage pre-commit's exclude
. I need this because I want to run this hook over a repo that has an intentional syntax error in a Go file https://gitlab.com/matthewhughes/go-cov/-/blob/81a617e1c8151f6f02f7118de80f1bffd123bfc3/testdata/syntax-error/syntax_error.go#L5 since I can't exclude that at the moment the hook just always fails
pre-commit hooks should not always run on the current directory - formatters should only run on changed files.