From 80fba127ad85606b3042bd700b1c2f07c8e96e46 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Wed, 30 Aug 2017 17:03:24 +0200 Subject: [PATCH] litner: Add rule against using pprint. --- tools/custom_check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/custom_check.py b/tools/custom_check.py index 6f5d467..d26e664 100644 --- a/tools/custom_check.py +++ b/tools/custom_check.py @@ -167,6 +167,8 @@ def build_custom_checkers(by_lang): '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/'])}, + {'pattern': 'pprint', + 'description': 'Used pprint, which is most likely a debugging leftover. For user output, use print().'} ]) + whitespace_rules bash_rules = [ {'pattern': '#!.*sh [-xe]',