From d3da04e7fac0e73dcab891c759d1a32b16c48293 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 14 Nov 2017 23:02:39 +0000 Subject: [PATCH] Just run the linter in the commit hook The pre-commit hook took 45 seconds to run on my machine, which was more than enough time for me to get distracted by a swordfight in the corridor. Let's just run the linters (which still take 6 seconds). It's not the place of a commit hook to run every test we can think of - that is what CI is for. --- hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index ec7e3e1e3..ae96b9ce7 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -2,4 +2,4 @@ set -eu -./scripts/build-test-lint.sh +./scripts/find-lint.sh fast