loaders: JPG: Fix bussy loop on corrupted file.
[gfxprim.git] / pylib / pylint.conf
blob0fd9fb9d6edca4119dfb2c87f30466ac9a880c2b
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=
10 # Profiled execution.
11 profile=no
13 # Add <file or directory> to the black list. It should be a base name, not a
14 # path. You may set this option multiple times.
15 ignore=CVS
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=
25 [MESSAGES CONTROL]
27 # Enable the message, report, category or checker with the given id(s). You can
28 # either give multiple identifier separated by comma (,) or put this option
29 # multiple time.
30 #enable=
32 # Disable the message, report, category or checker with the given id(s). You
33 # can either give multiple identifier separated by comma (,) or put this option
34 # multiple time.
35 disable=C0111,C0103
38 [REPORTS]
40 # Set the output format. Available formats are text, parseable, colorized, msvs
41 # (visual studio) and html
42 output-format=text
44 # Include message's id in output
45 include-ids=no
47 # Put messages in a separate file for each module / package specified on the
48 # command line instead of printing them on stdout. Reports (if any) will be
49 # written in a file name "pylint_global.[txt|html]".
50 files-output=no
52 # Tells whether to display a full report or only the messages
53 reports=no
55 # Python expression which should return a note less than 10 (10 is the highest
56 # note). You have access to the variables errors warning, statement which
57 # respectively contain the number of errors / warnings messages and the total
58 # number of statements analyzed. This is used by the global evaluation report
59 # (R0004).
60 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
62 # Add a comment according to your evaluation note. This is used by the global
63 # evaluation report (R0004).
64 comment=no
67 [SIMILARITIES]
69 # Minimum lines number of a similarity.
70 min-similarity-lines=4
72 # Ignore comments when computing similarities.
73 ignore-comments=yes
75 # Ignore docstrings when computing similarities.
76 ignore-docstrings=yes
79 [MISCELLANEOUS]
81 # List of note tags to take in consideration, separated by a comma.
82 notes=FIXME,XXX,TODO
85 [VARIABLES]
87 # Tells whether we should check for unused import in __init__ files.
88 init-import=no
90 # A regular expression matching names used for dummy variables (i.e. not used).
91 dummy-variables-rgx=_|dummy
93 # List of additional names supposed to be defined in builtins. Remember that
94 # you should avoid to define new builtins when possible.
95 additional-builtins=
98 [FORMAT]
100 # Maximum number of characters on a single line.
101 max-line-length=80
103 # Maximum number of lines in a module
104 max-module-lines=1000
106 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
107 # tab).
108 indent-string='  '
111 [TYPECHECK]
113 # Tells whether missing members accessed in mixin class should be ignored. A
114 # mixin class is detected if its name ends with "mixin" (case insensitive).
115 ignore-mixin-members=yes
117 # List of classes names for which member attributes should not be checked
118 # (useful for classes with attributes dynamically set).
119 ignored-classes=SQLObject
121 # When zope mode is activated, add a predefined set of Zope acquired attributes
122 # to generated-members.
123 zope=no
125 # List of members which are set dynamically and missed by pylint inference
126 # system, and so shouldn't trigger E0201 when accessed.
127 generated-members=REQUEST,acl_users,aq_parent
130 [BASIC]
132 # Required attributes for module, separated by a comma
133 required-attributes=
135 # List of builtins function names that should not be used, separated by a comma
136 bad-functions=map,filter,apply,input
138 # Regular expression which should only match correct module names
139 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
141 # Regular expression which should only match correct module level names
142 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
144 # Regular expression which should only match correct class names
145 class-rgx=[A-Z_][a-zA-Z0-9]+$
147 # Regular expression which should only match correct function names
148 function-rgx=[a-z_][a-z0-9_]{2,30}$
150 # Regular expression which should only match correct method names
151 method-rgx=[a-z_][a-z0-9_]{2,30}$
153 # Regular expression which should only match correct instance attribute names
154 attr-rgx=[a-z_][a-z0-9_]{2,30}$
156 # Regular expression which should only match correct argument names
157 argument-rgx=[a-z_][a-z0-9_]{2,30}$
159 # Regular expression which should only match correct variable names
160 variable-rgx=[a-z_][a-z0-9_]{1,30}$
162 # Regular expression which should only match correct list comprehension /
163 # generator expression variable names
164 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
166 # Good variable names which should always be accepted, separated by a comma
167 good-names=i,j,k,ex,Run,_
169 # Bad variable names which should always be refused, separated by a comma
170 bad-names=foo,bar,baz,toto,tutu,tata
172 # Regular expression which should only match functions or classes name which do
173 # not require a docstring
174 no-docstring-rgx=__.*__
177 [IMPORTS]
179 # Deprecated modules which should not be used, separated by a comma
180 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
182 # Create a graph of every (i.e. internal and external) dependencies in the
183 # given file (report RP0402 must not be disabled)
184 import-graph=
186 # Create a graph of external dependencies in the given file (report RP0402 must
187 # not be disabled)
188 ext-import-graph=
190 # Create a graph of internal dependencies in the given file (report RP0402 must
191 # not be disabled)
192 int-import-graph=
195 [CLASSES]
197 # List of interface methods to ignore, separated by a comma. This is used for
198 # instance to not check methods defines in Zope's Interface base class.
199 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
201 # List of method names used to declare (i.e. assign) instance attributes.
202 defining-attr-methods=__init__,__new__,setUp
205 [DESIGN]
207 # Maximum number of arguments for function / method
208 max-args=8
210 # Argument names that match this expression will be ignored. Default to name
211 # with leading underscore
212 ignored-argument-names=_.*
214 # Maximum number of locals for function / method body
215 max-locals=15
217 # Maximum number of return / yield for function / method body
218 max-returns=6
220 # Maximum number of branch for function / method body
221 max-branchs=12
223 # Maximum number of statements in function / method body
224 max-statements=50
226 # Maximum number of parents for a class (see R0901).
227 max-parents=7
229 # Maximum number of attributes for a class (see R0902).
230 max-attributes=12
232 # Minimum number of public methods for a class (see R0903).
233 min-public-methods=2
235 # Maximum number of public methods for a class (see R0904).
236 max-public-methods=20