From 0d52dc54dfe6c4aaf969b37713239d8419fc041c Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Mon, 10 Nov 2025 10:03:03 -0800 Subject: [PATCH] Bump pragma no cover for yaml ports --- script/coverage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/coverage b/script/coverage index 3b5307c..674373e 100755 --- a/script/coverage +++ b/script/coverage @@ -10,8 +10,8 @@ SOURCE_DIR="octodns/" # Don't allow disabling coverage PRAGMA_OUTPUT=$(grep -r -I --line-number "# pragma: \+no.*cover" "$SOURCE_DIR" || echo) PRAGMA_COUNT=$(echo "$PRAGMA_OUTPUT" | grep -c . || true) -PRAGMA_ALLOWED=2 -if [ "$PRAGMA_COUNT" -gt "$PRAGMA_ALLOWED" ]; then +PRAGMA_ALLOWED=5 +if [ "$PRAGMA_COUNT" -ne "$PRAGMA_ALLOWED" ]; then echo "Found $PRAGMA_COUNT instances of 'pragma: no cover' (no more than $PRAGMA_ALLOWED allowed):" echo "$PRAGMA_OUTPUT" echo "Code coverage should not be disabled, except for version handling blocks"