FIXME++
[omaha.git] / pylintrc
blobacfb96dde05342b355ae6f3ecf235509aaecb061
1 [MASTER]
3 # Specify a configuration file.
4 #rcfile=
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 init-hook=sys.path.append('.')
10 # Profiled execution.
11 profile=no
13 # Add files or directories to the blacklist. They should be base names, not
14 # paths.
15 ignore=.git
17 # Pickle collected data for later comparisons.
18 persistent=yes
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
22 load-plugins=Overlord.pylintx
24 # Allow loading of arbitrary C extensions. Extensions are imported into the
25 # active Python interpreter and may run arbitrary code.
26 unsafe-load-any-extension=no
28 # A comma-separated list of package or module names from where C extensions may
29 # be loaded. Extensions are loading into the active Python interpreter and may
30 # run arbitrary code
31 extension-pkg-whitelist=gtk,pangocairo,rsvg,PyQt4,sip
34 [MESSAGES CONTROL]
36 # Enable the message, report, category or checker with the given id(s). You can
37 # either give multiple identifier separated by comma (,) or put this option
38 # multiple time. See also the "--disable" option for examples.
39 #enable=
41 # Disable the message, report, category or checker with the given id(s). You
42 # can either give multiple identifiers separated by comma (,) or put this
43 # option multiple times (only on the command line, not in the configuration
44 # file where it should appear only once).You can also use "--disable=all" to
45 # disable everything first and then reenable specific checks. For example, if
46 # you want to run only the similarities checker, you can use "--disable=all
47 # --enable=similarities". If you want to run only the classes checker, but have
48 # no Warning level messages displayed, use"--disable=all --enable=classes
49 # --disable=W"
50 # C0103 flags x, y and such as too short (no comment)
51 # E0611 has a bug (see Debian #546522)
52 # R0903 triggers on abstract classes
53 # R0911: I disagree - or should I rather put a note besides those funcs ?
54 # R0901: I disagree
55 # C0111: full doc later
56 disable=C0103,R0903,R0911,R0901,C0111
59 [REPORTS]
61 # Set the output format. Available formats are text, parseable, colorized, msvs
62 # (visual studio) and html. You can also give a reporter class, eg
63 # mypackage.mymodule.MyReporterClass.
64 output-format=colorized
66 # Put messages in a separate file for each module / package specified on the
67 # command line instead of printing them on stdout. Reports (if any) will be
68 # written in a file name "pylint_global.[txt|html]".
69 files-output=no
71 # Tells whether to display a full report or only the messages
72 reports=yes
74 # Python expression which should return a note less than 10 (10 is the highest
75 # note). You have access to the variables errors warning, statement which
76 # respectively contain the number of errors / warnings messages and the total
77 # number of statements analyzed. This is used by the global evaluation report
78 # (RP0004).
79 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
81 # Add a comment according to your evaluation note. This is used by the global
82 # evaluation report (RP0004).
83 comment=no
85 # Template used to display messages. This is a python new-style format string
86 # used to format the message information. See doc for all details
87 #msg-template=
90 [VARIABLES]
92 # Tells whether we should check for unused import in __init__ files.
93 init-import=no
95 # A regular expression matching the name of dummy variables (i.e. expectedly
96 # not used).
97 dummy-variables-rgx=_$|dummy
99 # List of additional names supposed to be defined in builtins. Remember that
100 # you should avoid to define new builtins when possible.
101 additional-builtins=
104 [FORMAT]
106 # Maximum number of characters on a single line.
107 max-line-length=80
109 # Regexp for a line that is allowed to be longer than the limit.
110 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
112 # Allow the body of an if to be on the same line as the test if there is no
113 # else.
114 single-line-if-stmt=no
116 # List of optional constructs for which whitespace checking is disabled
117 no-space-check=trailing-comma,dict-separator
119 # Maximum number of lines in a module
120 max-module-lines=1000
122 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
123 # tab).
124 indent-string='    '
126 # Number of spaces of indent required inside a hanging or continued line.
127 indent-after-paren=4
130 [SIMILARITIES]
132 # Minimum lines number of a similarity.
133 min-similarity-lines=4
135 # Ignore comments when computing similarities.
136 ignore-comments=yes
138 # Ignore docstrings when computing similarities.
139 ignore-docstrings=yes
141 # Ignore imports when computing similarities.
142 ignore-imports=no
145 [TYPECHECK]
147 # Tells whether missing members accessed in mixin class should be ignored. A
148 # mixin class is detected if its name ends with "mixin" (case insensitive).
149 ignore-mixin-members=yes
151 # List of module names for which member attributes should not be checked
152 # (useful for modules/projects where namespaces are manipulated during runtime
153 # and thus existing member attributes cannot be deduced by static analysis
154 ignored-modules=
156 # List of classes names for which member attributes should not be checked
157 # (useful for classes with attributes dynamically set).
158 ignored-classes=SQLObject
160 # When zope mode is activated, add a predefined set of Zope acquired attributes
161 # to generated-members.
162 zope=no
164 # List of members which are set dynamically and missed by pylint inference
165 # system, and so shouldn't trigger E0201 when accessed. Python regular
166 # expressions are accepted.
167 generated-members=REQUEST,acl_users,aq_parent
170 [LOGGING]
172 # Logging modules to check that the string format arguments are in logging
173 # function parameter format
174 logging-modules=logging
177 [BASIC]
179 # Required attributes for module, separated by a comma
180 required-attributes=
182 # List of builtins function names that should not be used, separated by a comma
183 bad-functions=map,filter,apply,input,file
185 # Good variable names which should always be accepted, separated by a comma
186 good-names=i,j,k,ex,Run,_
188 # Bad variable names which should always be refused, separated by a comma
189 bad-names=foo,bar,baz,toto,tutu,tata
191 # Colon-delimited sets of names that determine each other's naming style when
192 # the name regexes allow several styles.
193 name-group=
195 # Include a hint for the correct naming format with invalid-name
196 include-naming-hint=no
198 # Regular expression matching correct function names
199 function-rgx=[a-z_][a-z0-9_]{2,30}$
201 # Naming hint for function names
202 function-name-hint=[a-z_][a-z0-9_]{2,30}$
204 # Regular expression matching correct variable names
205 variable-rgx=[a-z_][a-z0-9_]{2,30}$
207 # Naming hint for variable names
208 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
210 # Regular expression matching correct constant names
211 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
213 # Naming hint for constant names
214 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
216 # Regular expression matching correct attribute names
217 attr-rgx=[a-z_][a-z0-9_]{2,30}$
219 # Naming hint for attribute names
220 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
222 # Regular expression matching correct argument names
223 argument-rgx=[a-z_][a-z0-9_]{2,30}$
225 # Naming hint for argument names
226 argument-name-hint=[a-z_][a-z0-9_]{2,30}$
228 # Regular expression matching correct class attribute names
229 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
231 # Naming hint for class attribute names
232 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
234 # Regular expression matching correct inline iteration names
235 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
237 # Naming hint for inline iteration names
238 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
240 # Regular expression matching correct class names
241 class-rgx=[A-Z_][a-zA-Z0-9]+$
243 # Naming hint for class names
244 class-name-hint=[A-Z_][a-zA-Z0-9]+$
246 # Regular expression matching correct module names
247 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
249 # Naming hint for module names
250 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
252 # Regular expression matching correct method names
253 method-rgx=[a-z_][a-z0-9_]{2,30}$
255 # Naming hint for method names
256 method-name-hint=[a-z_][a-z0-9_]{2,30}$
258 # Regular expression which should only match function or class names that do
259 # not require a docstring.
260 no-docstring-rgx=__.*__
262 # Minimum line length for functions/classes that require docstrings, shorter
263 # ones are exempt.
264 docstring-min-length=-1
267 [MISCELLANEOUS]
269 # List of note tags to take in consideration, separated by a comma.
270 notes=FIXME,XXX,TODO
273 [CLASSES]
275 # List of interface methods to ignore, separated by a comma. This is used for
276 # instance to not check methods defines in Zope's Interface base class.
277 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
279 # List of method names used to declare (i.e. assign) instance attributes.
280 defining-attr-methods=__init__,__new__,setUp
282 # List of valid names for the first argument in a class method.
283 valid-classmethod-first-arg=cls
285 # List of valid names for the first argument in a metaclass class method.
286 valid-metaclass-classmethod-first-arg=mcs
289 [IMPORTS]
291 # Deprecated modules which should not be used, separated by a comma
292 deprecated-modules=regsub,TERMIOS,Bastion,rexec
294 # Create a graph of every (i.e. internal and external) dependencies in the
295 # given file (report RP0402 must not be disabled)
296 import-graph=
298 # Create a graph of external dependencies in the given file (report RP0402 must
299 # not be disabled)
300 ext-import-graph=
302 # Create a graph of internal dependencies in the given file (report RP0402 must
303 # not be disabled)
304 int-import-graph=
307 [DESIGN]
309 # Maximum number of arguments for function / method
310 max-args=5
312 # Argument names that match this expression will be ignored. Default to name
313 # with leading underscore
314 ignored-argument-names=_.*
316 # Maximum number of locals for function / method body
317 max-locals=15
319 # Maximum number of return / yield for function / method body
320 max-returns=6
322 # Maximum number of branch for function / method body
323 max-branches=12
325 # Maximum number of statements in function / method body
326 max-statements=50
328 # Maximum number of parents for a class (see R0901).
329 max-parents=7
331 # Maximum number of attributes for a class (see R0902).
332 max-attributes=7
334 # Minimum number of public methods for a class (see R0903).
335 min-public-methods=2
337 # Maximum number of public methods for a class (see R0904).
338 max-public-methods=20
341 [EXCEPTIONS]
343 # Exceptions that will emit a warning when being caught. Defaults to
344 # "Exception"
345 overgeneral-exceptions=Exception