Revision 35cea70e
Correction Bug + ContrĂ´le Pylint
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@291 b22e2e97-25c9-44ff-b637-2e5ceca36478
pylint_vigiboard.py | ||
---|---|---|
28 | 28 |
|
29 | 29 |
# A list of messages that should not be printed by pylint. |
30 | 30 |
SUPRESSED_MESSAGES = [ |
31 |
'I0011', # Used when an inline option disable a message or a messages
|
|
32 |
'F0401', # category.
|
|
31 |
# 'I0011', # Used when an inline option disable a message or a messages category
|
|
32 |
'F0401', # Used when pylint has been unable to import a module.
|
|
33 | 33 |
# If you decided to globally switch of a certain message instead of doing so |
34 | 34 |
# in file or scope where its generated then you can just uncomment it here. |
35 | 35 |
# Or add it if its not in the list. |
... | ... | |
38 | 38 |
# 'W0232', # Used when a class has no __init__ method, neither its parent |
39 | 39 |
# # classes. |
40 | 40 |
# 'W0401', # Used when `from module import *` is detected. |
41 |
'E0611', # Used when a name cannot be found in a module. |
|
41 | 42 |
# 'W0611', # Used when an imported module or variable is not used. |
42 |
# 'R0201', # Used when a method doesn't use its bound instance, and so could |
|
43 |
# # be written as a function. |
|
44 |
# 'R0801', # Indicates that a set of similar lines has been detected among |
|
45 |
# # multiple file. |
|
43 |
'R0201', # Used when a method doesn't use its bound instance, and so could |
|
44 |
# be written as a function. |
|
45 |
# 'W0102', # Used when a mutable value as list or dictionary is detected in a default |
|
46 |
# value for an argument. |
|
47 |
'W0142', # Used when a function or method is called using *args or **kwargs to |
|
48 |
# dispatch arguments. This doesn't improve readility and should be |
|
49 |
# used with care. |
|
50 |
'R0801', # Indicates that a set of similar lines has been detected among |
|
51 |
# multiple file. |
|
46 | 52 |
] |
47 | 53 |
|
48 | 54 |
PARAMS = [ |
49 |
'--reports=n', '--include-ids=y', '--const-rgx=(([a-z_][a-z0-9_]*)|(__.*__))$', |
|
55 |
#'--reports=n', |
|
56 |
'--include-ids=y', |
|
57 |
'--const-rgx=(([a-z_][a-z0-9_]*)|(__.*__))$', |
|
50 | 58 |
'--disable-msg=%s' % ",".join(SUPRESSED_MESSAGES), |
51 | 59 |
] |
52 | 60 |
PARAMS.extend(FILES) |
Also available in: Unified diff