From fcb78985c971a1f835af022504fa98e7b6452e2a Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Sun, 16 Feb 2020 09:46:26 +0000 Subject: [PATCH] Initial commit --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 README.md 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