Translated using Weblate.
[wammu.git] / pylintrc
blobd248abd2a598b2cc5e7d8dce6c60d7b175ca47aa
1 # lint Python modules using external checkers.
2
3 # This is the main checker controling the other ones and the reports
4 # generation. It is itself both a raw checker and an astng checker in order
5 # to:
6 # * handle message activation / deactivation at the module level
7 # * handle some basic but necessary stats'data (number of classes, methods...)
8
9 [MASTER]
11 # Specify a configuration file.
12 #rcfile=
14 # Profiled execution.
15 profile=no
17 # Add <file or directory> to the black list. It should be a base name, not a
18 # path. You may set this option multiple times.
19 ignore=CVS
20 ignore={arch}
21 ignore=.svn
22 ignore=.git
24 # Pickle collected data for later comparisons.
25 persistent=yes
27 # Set the cache size for astng objects.
28 cache-size=500
30 # List of plugins (as comma separated values of python modules names) to load,
31 # usually to register additional checkers.
32 load-plugins=
35 [COMMANDS]
37 # Display a help message for the given message id and exit. The value may be a
38 # comma separated list of message ids.
39 #help-msg=
42 [MESSAGES CONTROL]
44 # Enable only checker(s) with the given id(s). This option conflict with the
45 # disable-checker option
46 #enable-checker=
48 # Enable all checker(s) except those with the given id(s). This option conflict
49 # with the disable-checker option
50 #disable-checker=
52 # Enable all messages in the listed categories.
53 #enable-msg-cat=
55 # Disable all messages in the listed categories.
56 #disable-msg-cat=
58 # Enable the message(s) with the given id(s).
59 #enable-msg=
61 # Disable the message(s) with the given id(s).
62 #disable-msg=
65 [REPORTS]
67 # set the output format. Available formats are text, parseable, colorized and
68 # html
69 output-format=text
71 # Include message's id in output
72 include-ids=no
74 # Put messages in a separate file for each module / package specified on the
75 # command line instead of printing them on stdout. Reports (if any) will be
76 # written in a file name "pylint_global.[txt|html]".
77 files-output=no
79 # Tells wether to display a full report or only the messages
80 reports=yes
82 # Python expression which should return a note less than 10 (10 is the highest
83 # note).You have access to the variables errors warning, statement which
84 # respectivly contain the number of errors / warnings messages and the total
85 # number of statements analyzed. This is used by the global evaluation report
86 # (R0004).
87 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
89 # Add a comment according to your evaluation note. This is used by the global
90 # evaluation report (R0004).
91 comment=no
93 # Enable the report(s) with the given id(s).
94 #enable-report=
96 # Disable the report(s) with the given id(s).
97 #disable-report=
100 # checks for :
101 # * doc strings
102 # * modules / classes / functions / methods / arguments / variables name
103 # * number of arguments, local variables, branchs, returns and statements in
104 # functions, methods
105 # * required module attributes
106 # * dangerous default values as arguments
107 # * redefinition of function / method / class
108 # * uses of the global statement
110 [BASIC]
112 # Required attributes for module, separated by a comma
113 required-attributes=
115 # Regular expression which should only match functions or classes name which do
116 # not require a docstring
117 no-docstring-rgx=__.*__
119 # Regular expression which should only match correct module names
120 module-rgx=(([a-z_][a-z0-9_-]*)|([A-Z][a-zA-Z0-9]+))$
122 # Regular expression which should only match correct module level names
123 const-rgx=(([A-Z_][A-Z1-9_]*)|(__.*__))$
125 # Regular expression which should only match correct class names
126 class-rgx=[A-Z_][a-zA-Z0-9]+$
128 # Regular expression which should only match correct function names
129 function-rgx=[A-Za-z_][A-Za-z0-9_]{2,30}$
131 # Regular expression which should only match correct method names
132 method-rgx=[A-Za-z_][A-Za-z0-9_]{2,30}$
134 # Regular expression which should only match correct instance attribute names
135 attr-rgx=[a-z_][a-z0-9_]{2,30}$
137 # Regular expression which should only match correct argument names
138 argument-rgx=[a-z_][a-z0-9_]{2,30}$
140 # Regular expression which should only match correct variable names
141 variable-rgx=[a-z_][a-z0-9_]{2,30}$
143 # Regular expression which should only match correct list comprehension /
144 # generator expression variable names
145 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
147 # Good variable names which should always be accepted, separated by a comma
148 good-names=i,j,k,f,ex,Run,_
150 # Bad variable names which should always be refused, separated by a comma
151 bad-names=foo,bar,baz,toto,tutu,tata
153 # List of builtins function names that should not be used, separated by a comma
154 bad-functions=map,filter,apply,input
157 # checks for
158 # * unused variables / imports
159 # * undefined variables
160 # * redefinition of variable from builtins or from an outer scope
161 # * use of variable before assigment
163 [VARIABLES]
165 # Tells wether we should check for unused import in __init__ files.
166 init-import=no
168 # A regular expression matching names used for dummy variables (i.e. not used).
169 dummy-variables-rgx=_|dummy|event|evt|busy
171 # List of additional names supposed to be defined in builtins. Remember that
172 # you should avoid to define new builtins when possible.
173 additional-builtins=_
176 # try to find bugs in the code using type inference
178 [TYPECHECK]
180 # Tells wether missing members accessed in mixin class should be ignored. A
181 # mixin class is detected if its name ends with "mixin" (case insensitive).
182 ignore-mixin-members=yes
184 # When zope mode is activated, consider the acquired-members option to ignore
185 # access to some undefined attributes.
186 zope=no
188 # List of members which are usually get through zope's acquisition mecanism and
189 # so shouldn't trigger E0201 when accessed (need zope=yes to be considered).
190 acquired-members=REQUEST,acl_users,aq_parent
193 # checks for :
194 # * methods without self as first argument
195 # * overridden methods signature
196 # * access only to existant members via self
197 # * attributes not defined in the __init__ method
198 # * supported interfaces implementation
199 # * unreachable code
201 [CLASSES]
203 # List of interface methods to ignore, separated by a comma. This is used for
204 # instance to not check methods defines in Zope's Interface base class.
205 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
207 # List of method names used to declare (i.e. assign) instance attributes.
208 defining-attr-methods=__init__,__new__,setUp
211 # checks for sign of poor/misdesign:
212 # * number of methods, attributes, local variables...
213 # * size, complexity of functions, methods
215 [DESIGN]
217 # Maximum number of arguments for function / method
218 max-args=5
220 # Maximum number of locals for function / method body
221 max-locals=15
223 # Maximum number of return / yield for function / method body
224 max-returns=6
226 # Maximum number of branch for function / method body
227 max-branchs=12
229 # Maximum number of statements in function / method body
230 max-statements=50
232 # Maximum number of parents for a class (see R0901).
233 max-parents=7
235 # Maximum number of attributes for a class (see R0902).
236 max-attributes=7
238 # Minimum number of public methods for a class (see R0903).
239 min-public-methods=2
241 # Maximum number of public methods for a class (see R0904).
242 max-public-methods=20
245 # checks for
246 # * external modules dependencies
247 # * relative / wildcard imports
248 # * cyclic imports
249 # * uses of deprecated modules
251 [IMPORTS]
253 # Deprecated modules which should not be used, separated by a comma
254 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
256 # Create a graph of every (i.e. internal and external) dependencies in the
257 # given file (report R0402 must not be disabled)
258 import-graph=
260 # Create a graph of external dependencies in the given file (report R0402 must
261 # not be disabled)
262 ext-import-graph=
264 # Create a graph of internal dependencies in the given file (report R0402 must
265 # not be disabled)
266 int-import-graph=
269 # checks for similarities and duplicated code. This computation may be
270 # memory / CPU intensive, so you should disable it if you experiments some
271 # problems.
273 [SIMILARITIES]
275 # Minimum lines number of a similarity.
276 min-similarity-lines=4
278 # Ignore comments when computing similarities.
279 ignore-comments=yes
281 # Ignore docstrings when computing similarities.
282 ignore-docstrings=yes
285 # checks for:
286 # * warning notes in the code like FIXME, XXX
287 # * PEP 263: source code with non ascii character but no encoding declaration
289 [MISCELLANEOUS]
291 # List of note tags to take in consideration, separated by a comma.
292 notes=FIXME,XXX,TODO,@todo,\todo
295 # checks for :
296 # * unauthorized constructions
297 # * strict indentation
298 # * line length
299 # * use of <> instead of !=
301 [FORMAT]
303 # Maximum number of characters on a single line.
304 max-line-length=80
306 # Maximum number of lines in a module
307 max-module-lines=1000
309 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
310 # tab).
311 indent-string='    '