File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ clean:
30
30
DATAFLOW_BRANCH =main
31
31
32
32
autoformat :
33
- find ql -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
33
+ find ql -iregex ' .*\ .qll? ' -print0 | xargs -0 codeql query format -qq -i
34
+ find . -path ' **/vendor ' -prune -or -type f -iname ' * .go' ! -empty -print0 | xargs -0 grep -L " //\s*autoformat-ignore" | xargs gofmt -w
35
35
36
36
check-formatting :
37
- find ql -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)"
37
+ find ql -iregex ' .*\ .qll? ' -print0 | xargs -0 codeql query format --check-only
38
+ test -z " $$ (find . -path '**/vendor' -prune -or -type f -iname '* .go' ! -empty -print0 | xargs -0 grep -L " //\s * autoformat-ignore" | xargs gofmt -l)"
39
39
40
40
ifeq ($(QHELP_OUT_DIR ) ,)
41
41
# If not otherwise specified, compile qhelp to markdown in place
You can’t perform that action at this time.
0 commit comments