Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit b370a86

Browse files
authored
Merge pull request #370 from max-schaefer/fix-formatting-targets
Fix escaping in Makefile targets.
2 parents 024e8ef + 9db478a commit b370a86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ DATAFLOW_BRANCH=master
3131

3232
autoformat:
3333
find ql/src -name "*.ql" -or -name "*.qll" | xargs codeql query format -qq -i
34-
git ls-files | grep \\.go$$ | grep -v ^vendor/ | xargs grep -L "//\s*autoformat-ignore" | xargs gofmt -w
34+
git ls-files | grep '\.go$$' | grep -v ^vendor/ | xargs grep -L "//\s*autoformat-ignore" | xargs gofmt -w
3535

3636
check-formatting:
3737
find ql/src -name "*.ql" -or -name "*.qll" | xargs codeql query format --check-only
38-
test -z "$$(git ls-files | grep \\.go$ | grep -v ^vendor/ | xargs grep -L "//\s*autoformat-ignore" | xargs gofmt -l)"
38+
test -z "$$(git ls-files | grep '\.go$$' | grep -v ^vendor/ | xargs grep -L "//\s*autoformat-ignore" | xargs gofmt -l)"
3939

4040
ifeq ($(QHELP_OUT_DIR),)
4141
# If not otherwise specified, compile qhelp to markdown in place

0 commit comments

Comments
 (0)