summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura M?dioni <laura.medioni@logilab.fr>2015-11-03 14:32:22 +0100
committerLaura M?dioni <laura.medioni@logilab.fr>2015-11-03 14:32:22 +0100
commitf039b5e6bd46256c2299223bca68c03f3fc241a3 (patch)
treeb08ac323817cd430f943af717aa749fa5cd2d5ff
parent1d3704ade48ff95819e1a897af66c416d0bccaab (diff)
downloadpylint-f039b5e6bd46256c2299223bca68c03f3fc241a3.tar.gz
add an extra sentence saying why blocks nesting is a bad pattern
related to the issue #668
-rw-r--r--pylint/checkers/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index c9f0b0a..d8bbdf6 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -1653,7 +1653,8 @@ class ElifChecker(BaseTokenChecker):
msgs = {'R0101': ('Too many nested blocks (%s/%s)',
'too-many-nested-blocks',
'Used when a function or a method has too many nested '
- 'blocks.'),
+ 'blocks. This makes the code less understandable and '
+ 'maintainable.'),
}
options = (('max-nested-blocks',
{'default' : 5, 'type' : 'int', 'metavar' : '<int>',