Skip to content

Commit 65c518b

Browse files
committed
fix(docs): skip auto-generated files in validation
Add check to skip auto-generated files (with '-- AUTOMATICALLY GENERATED FILE' marker) in validate-required-tags.sh, matching check-doc-coverage.sh behavior. This fixes validation errors for src/version.sql which is generated during build from src/version.template (which is properly documented). Validation now correctly: - Skips version.sql (auto-generated, in .gitignore) - Validates version.template (source with documentation) - Achieves 100% coverage without errors
1 parent 95b8ce8 commit 65c518b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks/validate-required-tags.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ errors=0
1313
warnings=0
1414

1515
for file in $(find src -name "*.sql" -not -name "*_test.sql"); do
16+
# Skip auto-generated files
17+
if grep -q "^-- AUTOMATICALLY GENERATED FILE" "$file" 2>/dev/null; then
18+
continue
19+
fi
20+
1621
# For each CREATE FUNCTION, check tags
1722
functions=$(grep -n "^CREATE FUNCTION" "$file" 2>/dev/null | cut -d: -f1 || echo "")
1823

0 commit comments

Comments
 (0)