diff --git a/scripts/check-rule-violations.sh b/scripts/check-rule-violations.sh index d28680cc..407cf1e1 100644 --- a/scripts/check-rule-violations.sh +++ b/scripts/check-rule-violations.sh @@ -489,6 +489,18 @@ PYEOF python3 "$py_helper" "$repo_dir" > "$out" 2>/dev/null || true while IFS=: read -r file line evidence; do [[ -z "$file" ]] && continue + # Emojis in CLI / scaffolder / asset-generator output are intentional + # terminal decoration, not product code noise. Apply the same path + # exemptions used by console-log + python-print rules. + [[ "$file" =~ (^|/)scripts/ ]] && continue + [[ "$file" =~ /packages/create-app/ ]] && continue + [[ "$file" =~ /services/monitoring/ ]] && continue + [[ "$file" =~ /services/[^/]+/scripts/ ]] && continue + [[ "$file" =~ (^|/)plugins/ ]] && continue + [[ "$file" =~ /assets/ ]] && continue + # kill_switch.py emits operator-facing CLI status output with status + # emojis (✓/✗) \u2014 same category as scripts/ tools. + [[ "$file" =~ /kill_switch\.py$ ]] && continue emit_finding "b7-emoji-in-code" "minor" "$repo" "$file" "$line" "Emoji in code: $evidence" done < "$out" rm -f "$py_helper" "$out"