mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
lint-all: Fix markdown_whitespace_rules indentation.
This commit is contained in:
@@ -179,12 +179,12 @@ def build_custom_checkers(by_lang):
|
|||||||
'description': 'Fix tab-based whitespace'},
|
'description': 'Fix tab-based whitespace'},
|
||||||
] # type: RuleList
|
] # type: RuleList
|
||||||
markdown_whitespace_rules = list([rule for rule in whitespace_rules if rule['pattern'] != '\s+$']) + [
|
markdown_whitespace_rules = list([rule for rule in whitespace_rules if rule['pattern'] != '\s+$']) + [
|
||||||
# Two spaces trailing a line with other content is okay--it's a markdown line break.
|
# Two spaces trailing a line with other content is okay--it's a markdown line break.
|
||||||
# This rule finds one space trailing a non-space, three or more trailing spaces, and
|
# This rule finds one space trailing a non-space, three or more trailing spaces, and
|
||||||
# spaces on an empty line.
|
# spaces on an empty line.
|
||||||
{'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'},
|
||||||
] # type: RuleList
|
] # type: RuleList
|
||||||
js_rules = cast(RuleList, [
|
js_rules = cast(RuleList, [
|
||||||
{'pattern': '[^_]function\(',
|
{'pattern': '[^_]function\(',
|
||||||
|
|||||||
Reference in New Issue
Block a user