Skip to content

Commit 4b75dcf

Browse files
MarcoFalkelaanwj
authored andcommitted
devtools: Make linter check LogPrint calls
1 parent ff2ad2d commit 4b75dcf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/devtools/lint-logs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
# ignored
1414

1515

16-
UNTERMINATED_LOGS=$(git grep "LogPrintf(" -- "*.cpp" | \
16+
UNTERMINATED_LOGS=$(git grep --extended-regexp "LogPrintf?\(" -- "*.cpp" | \
1717
grep -v '\\n"' | \
1818
grep -v "/\* Continued \*/" | \
19+
grep -v "LogPrint()" | \
1920
grep -v "LogPrintf()")
2021
if [[ ${UNTERMINATED_LOGS} != "" ]]; then
21-
echo "All calls to LogPrintf() should be terminated with \\n"
22+
echo "All calls to LogPrintf() and LogPrint() should be terminated with \\n"
2223
echo
2324
echo "${UNTERMINATED_LOGS}"
2425
exit 1

0 commit comments

Comments
 (0)