lint: Exclude outbox from linter checks on "subject".

This commit is contained in:
Tim Abbott
2018-11-27 11:05:25 -08:00
parent d00b889402
commit 58a6dafa68

View File

@@ -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'],