Skip to content

Commit 893894c

Browse files
committed
Check for merged Privacy/Security sections, since that's now disallowed. Fixes #2120.
1 parent ac53e3f commit 893894c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bikeshed/headings.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ def checkPrivacySecurityHeadings(headings):
6565
security = True
6666
if "privacy" in text and "considerations" in text:
6767
privacy = True
68+
if "security" in text and "privacy" in text and "considerations" in text:
69+
warn(
70+
"W3C policy requires Privacy Considerations and Security Considerations to be separate sections, but you appear to have them combined into one.",
71+
el=header,
72+
)
6873
if security and privacy:
69-
# No need to look any further!
7074
return
7175
if not security and not privacy:
7276
warn(

0 commit comments

Comments
 (0)