commit fcb78985c971a1f835af022504fa98e7b6452e2a Author: Laurence Withers Date: Sun Feb 16 09:46:26 2020 +0000 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..8831c4d --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Git pre-commit hook + +This commit hook only runs if it detects a Go source repository (by testing for +the presence of a `go.mod` within the first 3 levels of directory). + +Tests: + - runs `go vet` on each module + - runs `goimports` on all source (excluding generating protobuf `.pb.go` files) + - checks for large (>1MiB) files