lint: Require space after headings in markdown.

This commit is contained in:
Tim Abbott
2016-12-07 17:15:28 -08:00
parent 279d160f99
commit 90f76c079d
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
#Mention a Team Member # Mention a Team Member
![Mention a Team Member](/static/images/help/mention_user.png) ![Mention a Team Member](/static/images/help/mention_user.png)

View File

@@ -185,6 +185,9 @@ def build_custom_checkers(by_lang):
{'pattern': '((?<!\s)\s$)|(\s\s\s+$)|(^\s+$)', {'pattern': '((?<!\s)\s$)|(\s\s\s+$)|(^\s+$)',
'strip': '\n', 'strip': '\n',
'description': 'Fix trailing whitespace'}, 'description': 'Fix trailing whitespace'},
{'pattern': '^#+[A-Za-z0-9]',
'strip': '\n',
'description': 'Missing space after # in heading'},
] # type: RuleList ] # type: RuleList
js_rules = cast(RuleList, [ js_rules = cast(RuleList, [
{'pattern': '[^_]function\(', {'pattern': '[^_]function\(',