Skip to content

Commit 47a68db

Browse files
committed
Add logging hygiene exception for frozen-abi
1 parent 13ac095 commit 47a68db

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/check-nits.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ declare print_free_tree=(
3131
':^**/build.rs'
3232
)
3333

34-
if git --no-pager grep -n "${prints[@]/#/-e}" -- "${print_free_tree[@]}"; then
34+
# Parts of the tree that may match a print_free_tree pattern but are deemed
35+
# an exception to the print free hygiene rule
36+
declare print_allowed_tree=(
37+
':!^frozen-abi/src/*.rs'
38+
)
39+
40+
if git --no-pager grep -n "${prints[@]/#/-e}" -- "${print_free_tree[@]}" "${print_allowed_tree[@]}"; then
3541
exit 1
3642
fi
3743

0 commit comments

Comments
 (0)