summaryrefslogtreecommitdiff
path: root/checkers/design_analysis.py
diff options
context:
space:
mode:
authorsyt <syt@sextans.logilab.fr>2006-05-09 09:55:16 +0200
committersyt <syt@sextans.logilab.fr>2006-05-09 09:55:16 +0200
commitb3a23e3f94f7468015a4cde78b58b5ebee0bb308 (patch)
tree3172117dc612e948d4d4f2eebf2e9e78c1d45099 /checkers/design_analysis.py
parenta120206e378545016e1b480724ee9b53e875f85b (diff)
downloadpylint-b3a23e3f94f7468015a4cde78b58b5ebee0bb308.tar.gz
check ChangeLog
Diffstat (limited to 'checkers/design_analysis.py')
-rw-r--r--checkers/design_analysis.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/checkers/design_analysis.py b/checkers/design_analysis.py
index 1d51e74..7623979 100644
--- a/checkers/design_analysis.py
+++ b/checkers/design_analysis.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2005 LOGILAB S.A. (Paris, FRANCE).
+# Copyright (c) 2003-2006 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This program is free software; you can redistribute it and/or modify it under
@@ -40,18 +40,24 @@ def class_is_abstract(klass):
MSGS = {
'R0901': ('Too many ancestors (%s/%s)',
- 'Used when class has too many parent classes.'),
+ 'Used when class has too many parent classes, try to reduce \
+ this to get a more simple (and so easier to use) class.'),
'R0902': ('Too many instance attributes (%s/%s)',
- 'Used when class has too many instance attributes.'),
- 'R0903': ('Not enough public methods (%s/%s)',
- 'Used when class has not enough public methods.'),
+ 'Used when class has too many instance attributes, try to reduce \
+ this to get a more simple (and so easier to use) class.'),
+ 'R0903': ('To few public methods (%s/%s)',
+ 'Used when class has to few public methods, so be sure it\'s \
+ really worth it.'),
'R0904': ('Too many public methods (%s/%s)',
- 'Used when class has too many public methods.'),
+ 'Used when class has too many public methods, try to reduce \
+ this to get a more simple (and so easier to use) class.'),
'R0911': ('Too many return statements (%s/%s)',
- 'Used when a function or method has too many return statement.'),
+ 'Used when a function or method has too many return statement, \
+ making it hard to follow.'),
'R0912': ('Too many branches (%s/%s)',
- 'Used when a function or method has too many branches.'),
+ 'Used when a function or method has too many branches, \
+ making it hard to follow.'),
'R0913': ('Too many arguments (%s/%s)',
'Used when a function or method takes too many arguments.'),
'R0914': ('Too many local variables (%s/%s)',