mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
lint: Exclude outbox from linter checks on "subject".
This commit is contained in:
@@ -362,7 +362,7 @@ def build_custom_checkers(by_lang):
|
||||
]) + whitespace_rules + comma_whitespace_rule
|
||||
python_rules = cast(RuleList, [
|
||||
{'pattern': 'subject|SUBJECT',
|
||||
'exclude_pattern': 'subject to the|email',
|
||||
'exclude_pattern': 'subject to the|email|outbox',
|
||||
'description': 'avoid subject as a var',
|
||||
'good_lines': ['topic_name'],
|
||||
'bad_lines': ['subject="foo"', ' MAX_SUBJECT_LEN'],
|
||||
|
||||
Reference in New Issue
Block a user