From 7204d4b66a175a0fd2d107cef00b42d35936f777 Mon Sep 17 00:00:00 2001 From: Anay Dhawan Date: Thu, 3 Sep 2026 20:45:08 +0530 Subject: [PATCH] fix: exclude generated explainers mirror from em-dash scan faircode/_explainers/*.md is a generated copy of explainers/*.md; scanning both reports the same em dash twice under different paths. Add the mirror to ALLOW_PREFIXES, matching the paper/results-frozen/ exclusion pattern. --- scripts/check_em_dash.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/check_em_dash.py b/scripts/check_em_dash.py index ba50cf0..1c6139a 100644 --- a/scripts/check_em_dash.py +++ b/scripts/check_em_dash.py @@ -34,7 +34,10 @@ ".github/ISSUE_TEMPLATE/new_audit.yml", ".github/ISSUE_TEMPLATE/new_explainer.yml", } -ALLOW_PREFIXES = ("paper/results-frozen/",) # frozen evidence, never modified +ALLOW_PREFIXES = ( + "paper/results-frozen/", # frozen evidence, never modified + "faircode/_explainers/", # generated mirror of explainers/*.md, checking the source already covers it +) def _tracked_files():