build: No tidy for test files. Closes #2271
This commit is contained in:
parent
3f3339e076
commit
30385022c1
@ -120,6 +120,7 @@ ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \
|
||||
tidy:
|
||||
@$(call E, check: formatting)
|
||||
$(Q)find $(S)src -name '*.r[sc]' \
|
||||
| grep '^$(S)src/test' -v \
|
||||
| xargs -n 10 python $(S)src/etc/tidy.py
|
||||
$(Q)find $(S)src/etc -name '*.py' \
|
||||
| xargs -n 10 python $(S)src/etc/tidy.py
|
||||
|
@ -32,9 +32,7 @@ try:
|
||||
report_err("trailing whitespace")
|
||||
line_len = len(line)-2 if autocrlf else len(line)-1
|
||||
|
||||
# Along long lines if they are part of an expected error message
|
||||
# in a test, which is denoted with "//!":
|
||||
if line_len > cols and "//!" not in line:
|
||||
if line_len > cols:
|
||||
report_err("line longer than %d chars" % cols)
|
||||
except UnicodeDecodeError, e:
|
||||
report_err("UTF-8 decoding error " + str(e))
|
||||
|
Loading…
Reference in New Issue
Block a user