mirror of
https://github.com/github/codeql.git
synced 2026-01-29 06:12:58 +01:00
Autoformat tests
This commit is contained in:
4
Makefile
4
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),)
|
||||
|
||||
Reference in New Issue
Block a user