Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/check_ai_disclosure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ fi

# 4. A near miss. A line that is clearly meant to be the disclosure but is
# not spelled exactly right defeats every deduplication that follows it.
hits="$(grep -nIF 'AI assistance' -- "${FILES[@]}" 2>/dev/null \
hits="$(grep -nIE '^[[:space:]]*(//|/\*+|\*|;|@|#)[[:space:]]*(Portions? of this file|Some portions).*AI assistance' \
-- "${FILES[@]}" 2>/dev/null \
| grep -vF "${FIXED}" || true)"
if [ -n "${hits}" ]; then
report "AI disclosure check FAILED: the text is not spelled exactly.
Expand Down