linter: Add open() call restriction for the john bot.
This commit is contained in:
parent
0a85962097
commit
0dfb405748
|
@ -166,8 +166,7 @@ def build_custom_checkers(by_lang):
|
||||||
{'pattern': '(^|\s)open\s*\(',
|
{'pattern': '(^|\s)open\s*\(',
|
||||||
'description': 'open() should not be used in Zulip\'s bots. Use functions'
|
'description': 'open() should not be used in Zulip\'s bots. Use functions'
|
||||||
' provided by the bots framework to access the filesystem.',
|
' provided by the bots framework to access the filesystem.',
|
||||||
'include_only': set(['zulip_bots/zulip_bots/bots/']),
|
'include_only': set(['zulip_bots/zulip_bots/bots/'])},
|
||||||
'exclude': set(['zulip_bots/zulip_bots/bots/john/john.py'])},
|
|
||||||
]) + whitespace_rules
|
]) + whitespace_rules
|
||||||
bash_rules = [
|
bash_rules = [
|
||||||
{'pattern': '#!.*sh [-xe]',
|
{'pattern': '#!.*sh [-xe]',
|
||||||
|
|
Loading…
Reference in a new issue