From 80c2fcdbb8b31d28929a92e18f60bb22da787549 Mon Sep 17 00:00:00 2001 From: Sauyon Lee Date: Tue, 10 Nov 2020 09:35:16 -0800 Subject: [PATCH] Autoformat tests --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9d06e61ca5e..63145f427f6 100644 --- a/Makefile +++ b/Makefile @@ -30,11 +30,11 @@ clean: DATAFLOW_BRANCH=master autoformat: - find ql/src -name "*.ql" -or -name "*.qll" | xargs codeql query format -qq -i + find ql -name "*.ql" -or -name "*.qll" | xargs codeql query format -qq -i git ls-files | grep '\.go$$' | grep -v ^vendor/ | xargs grep -L "//\s*autoformat-ignore" | xargs gofmt -w check-formatting: - find ql/src -name "*.ql" -or -name "*.qll" | xargs codeql query format --check-only + find ql -name "*.ql" -or -name "*.qll" | xargs codeql query format --check-only test -z "$$(git ls-files | grep '\.go$$' | grep -v ^vendor/ | xargs grep -L "//\s*autoformat-ignore" | xargs gofmt -l)" ifeq ($(QHELP_OUT_DIR),)