litner: Add rule against using pprint.

This commit is contained in:
derAnfaenger 2017-08-30 17:03:24 +02:00 committed by Tim Abbott
parent 86729a862c
commit 80fba127ad

View file

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