Skip to content

Commit

Permalink
Check for merged Privacy/Security sections, since that's now disallow…
Browse files Browse the repository at this point in the history
…ed. Fixes #2120.
  • Loading branch information
tabatkins committed Jan 7, 2022
1 parent ac53e3f commit 893894c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bikeshed/headings.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ def checkPrivacySecurityHeadings(headings):
security = True
if "privacy" in text and "considerations" in text:
privacy = True
if "security" in text and "privacy" in text and "considerations" in text:
warn(
"W3C policy requires Privacy Considerations and Security Considerations to be separate sections, but you appear to have them combined into one.",
el=header,
)
if security and privacy:
# No need to look any further!
return
if not security and not privacy:
warn(
Expand Down

0 comments on commit 893894c

Please sign in to comment.