From 0dfb40574833dd6f1720563dc21b026037de490e Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Thu, 27 Jul 2017 12:47:44 +0200 Subject: [PATCH] linter: Add open() call restriction for the john bot. --- tools/custom_check.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/custom_check.py b/tools/custom_check.py index f5ebf0e..deb994f 100644 --- a/tools/custom_check.py +++ b/tools/custom_check.py @@ -166,8 +166,7 @@ def build_custom_checkers(by_lang): {'pattern': '(^|\s)open\s*\(', 'description': 'open() should not be used in Zulip\'s bots. Use functions' ' provided by the bots framework to access the filesystem.', - 'include_only': set(['zulip_bots/zulip_bots/bots/']), - 'exclude': set(['zulip_bots/zulip_bots/bots/john/john.py'])}, + 'include_only': set(['zulip_bots/zulip_bots/bots/'])}, ]) + whitespace_rules bash_rules = [ {'pattern': '#!.*sh [-xe]',