We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ac095 commit 47a68dbCopy full SHA for 47a68db
scripts/check-nits.sh
@@ -31,7 +31,13 @@ declare print_free_tree=(
31
':^**/build.rs'
32
)
33
34
-if git --no-pager grep -n "${prints[@]/#/-e}" -- "${print_free_tree[@]}"; then
+# 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
41
exit 1
42
fi
43
0 commit comments