Skip to content

Avoid common App Store and Google Play rejections. Open playbook and pre-submission guard with 117 documented rejection patterns and fixes, privacy manifest and Data safety checks, 95 tracked deadlines (EU AI Act, DSA, COPPA, age laws), and a skill for AI coding agents.

Format all requested fields in deadline checker warnings (#208)

Mirza Iqbalcd2944dd7f00
diff --git a/scripts/deadline-checker.py b/scripts/deadline-checker.py
index d513469..54157a9 100755
--- a/scripts/deadline-checker.py
+++ b/scripts/deadline-checker.py
@@ -72,7 +72,10 @@ def main():
"jurisdiction": d.get("jurisdiction", "Unknown"),
"law": d.get("law", "Unknown"),
"requirement": d.get("requirement", "Unknown"),
- "mandatory_date": d.get("mandatory_date"),
+ "effective_date": d.get("effective_date", "Unknown"),
+ "grace_period": d.get("grace_period", "Unknown"),
+ "mandatory_date": d.get("mandatory_date", "Unknown"),
+ "enforcement_date": d.get("enforcement_date", "Unknown"),
"priority": d.get("priority", "Medium"),
"sections": sections_str,
"remaining_days": remaining_days,
@@ -93,10 +96,14 @@ def main():
for item in passed_deadlines:
overdue = abs(item["remaining_days"])
print(f"[{item['priority'].upper()}] Jurisdiction: {item['jurisdiction']}")
- print(f" Law: {item['law']}")
- print(f" Requirement: {item['requirement']}")
- print(f" Passed Date: {item['mandatory_date']} ({overdue} days overdue)")
- print(f" Impacted: {item['sections']}")
+ print(f" Law: {item['law']}")
+ print(f" Requirement: {item['requirement']}")
+ print(f" Effective date: {item['effective_date']}")
+ print(f" Grace period: {item['grace_period']}")
+ print(f" Mandatory date: {item['mandatory_date']} ({overdue} days overdue)")
+ print(f" Enforcement date: {item['enforcement_date']}")
+ print(f" Affected repository sections: {item['sections']}")
+ print(f" Priority: {item['priority'].upper()}")
print()
if upcoming_deadlines:
@@ -107,12 +114,14 @@ def main():
upcoming_deadlines.sort(key=lambda x: x["remaining_days"])
for item in upcoming_deadlines:
print(f"[{item['priority'].upper()}] Jurisdiction: {item['jurisdiction']}")
- print(f" Law: {item['law']}")
- print(f" Requirement: {item['requirement']}")
- print(
- f" Due Date: {item['mandatory_date']} (in {item['remaining_days']} days)"
- )
- print(f" Impacted: {item['sections']}")
+ print(f" Law: {item['law']}")
+ print(f" Requirement: {item['requirement']}")
+ print(f" Effective date: {item['effective_date']}")
+ print(f" Grace period: {item['grace_period']}")
+ print(f" Mandatory date: {item['mandatory_date']} (in {item['remaining_days']} days)")
+ print(f" Enforcement date: {item['enforcement_date']}")
+ print(f" Affected repository sections: {item['sections']}")
+ print(f" Priority: {item['priority'].upper()}")
print()
if not warnings_found:
diff --git a/scripts/test-deadline-checker.py b/scripts/test-deadline-checker.py
index ba0ec7e..cb73553 100755
--- a/scripts/test-deadline-checker.py
+++ b/scripts/test-deadline-checker.py
@@ -97,6 +97,13 @@ class TestDeadlineChecker(unittest.TestCase):
self.assertIn("Upcoming Regulation 2026", output)
self.assertTrue("in " in output and " days" in output)
+ # Verify all requested fields are present in the output
+ self.assertIn("Effective date:", output)
+ self.assertIn("Grace period:", output)
+ self.assertIn("Enforcement date:", output)
+ self.assertIn("Affected repository sections:", output)
+ self.assertIn("Priority:", output)
+
# Verify far future deadline is NOT in stdout
self.assertNotIn("Far Future Law 2028", output)