[Tizen] Add prelauncher
[platform/framework/web/crosswalk-tizen.git] / vendor / depot_tools / pylintrc
1 [MASTER]
2
3 # Specify a configuration file.
4 #rcfile=
5
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 #init-hook=
9
10 # Profiled execution.
11 profile=no
12
13 # Add files or directories to the blacklist. They should be base names, not
14 # paths.
15 ignore=CVS
16
17 # Pickle collected data for later comparisons.
18 persistent=yes
19
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
22 load-plugins=
23
24
25 [MESSAGES CONTROL]
26
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=
31
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 (only on the command line, not in the configuration file where
35 # it should appear only once).
36 # CHANGED:
37 # C0103: Invalid name ""
38 # C0111: Missing docstring
39 # C0302: Too many lines in module (N)
40 # I0010: Unable to consider inline option ''
41 # I0011: Locally disabling WNNNN
42 #
43 # R0801: Similar lines in N files
44 # R0901: Too many ancestors (8/7)
45 # R0902: Too many instance attributes (N/7)
46 # R0903: Too few public methods (N/2)
47 # R0904: Too many public methods (N/20)
48 # R0911: Too many return statements (N/6)
49 # R0912: Too many branches (N/12)
50 # R0913: Too many arguments (N/5)
51 # R0914: Too many local variables (N/15)
52 # R0915: Too many statements (N/50)
53 # R0921: Abstract class not referenced
54 # R0922: Abstract class is only referenced 1 times
55 # W0122: Use of the exec statement
56 # W0141: Used builtin function ''
57 # W0142: Used * or ** magic
58 # W0402: Uses of a deprecated module 'string'
59 # W0404: 41: Reimport 'XX' (imported line NN)
60 # W0511: TODO
61 # W0603: Using the global statement
62 # W0703: Catch "Exception"
63 # W1201: Specify string format arguments as logging function parameters
64 #
65 # These should get enabled, but the codebase has too many violations currently.
66 # bad-continuation
67 # anomalous-backslash-in-string
68 # bad-context-manager
69 # bad-indentation
70 # bad-str-strip-call
71 # bad-whitespace
72 # cell-var-from-loop
73 # deprecated-lambda
74 # eval-used
75 # function-redefined
76 # import-error
77 # locally-enabled
78 # missing-final-newline
79 # no-init
80 # no-name-in-module
81 # no-self-use
82 # not-callable
83 # old-style-class
84 # protected-access
85 # superfluous-parens
86 # super-on-old-class
87 # too-many-function-args
88 # trailing-whitespace
89 # unnecessary-semicolon
90 # unpacking-non-sequence
91 # unused-import
92 # useless-else-on-loop
93 disable=C0103,C0111,C0302,I0010,I0011,R0801,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R0921,R0922,W0122,W0141,W0142,W0402,W0404,W0511,W0603,W0703,W1201,bad-continuation,anomalous-backslash-in-string,bad-context-manager,bad-indentation,bad-str-strip-call,bad-whitespace,cell-var-from-loop,deprecated-lambda,eval-used,function-redefined,import-error,locally-enabled,missing-final-newline,no-init,no-name-in-module,no-self-use,not-callable,old-style-class,protected-access,superfluous-parens,super-on-old-class,too-many-function-args,trailing-whitespace,unnecessary-semicolon,unpacking-non-sequence,unused-import,useless-else-on-loop
94
95
96 [REPORTS]
97
98 # Set the output format. Available formats are text, parseable, colorized, msvs
99 # (visual studio) and html
100 output-format=text
101
102 # Put messages in a separate file for each module / package specified on the
103 # command line instead of printing them on stdout. Reports (if any) will be
104 # written in a file name "pylint_global.[txt|html]".
105 files-output=no
106
107 # Tells whether to display a full report or only the messages
108 # CHANGED:
109 reports=no
110
111 # Python expression which should return a note less than 10 (10 is the highest
112 # note). You have access to the variables errors warning, statement which
113 # respectively contain the number of errors / warnings messages and the total
114 # number of statements analyzed. This is used by the global evaluation report
115 # (RP0004).
116 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
117
118 # Add a comment according to your evaluation note. This is used by the global
119 # evaluation report (RP0004).
120 comment=no
121
122
123 [VARIABLES]
124
125 # Tells whether we should check for unused import in __init__ files.
126 init-import=no
127
128 # A regular expression matching the beginning of the name of dummy variables
129 # (i.e. not used).
130 dummy-variables-rgx=_|dummy
131
132 # List of additional names supposed to be defined in builtins. Remember that
133 # you should avoid to define new builtins when possible.
134 additional-builtins=
135
136
137 [TYPECHECK]
138
139 # Tells whether missing members accessed in mixin class should be ignored. A
140 # mixin class is detected if its name ends with "mixin" (case insensitive).
141 ignore-mixin-members=yes
142
143 # List of classes names for which member attributes should not be checked
144 # (useful for classes with attributes dynamically set).
145 ignored-classes=SQLObject,twisted.internet.reactor,hashlib,google.appengine.api.memcache
146
147 # When zope mode is activated, add a predefined set of Zope acquired attributes
148 # to generated-members.
149 zope=no
150
151 # List of members which are set dynamically and missed by pylint inference
152 # system, and so shouldn't trigger E0201 when accessed. Python regular
153 # expressions are accepted.
154 generated-members=REQUEST,acl_users,aq_parent,multiprocessing.managers.SyncManager
155
156
157 [MISCELLANEOUS]
158
159 # List of note tags to take in consideration, separated by a comma.
160 notes=FIXME,XXX,TODO
161
162
163 [SIMILARITIES]
164
165 # Minimum lines number of a similarity.
166 min-similarity-lines=4
167
168 # Ignore comments when computing similarities.
169 ignore-comments=yes
170
171 # Ignore docstrings when computing similarities.
172 ignore-docstrings=yes
173
174
175 [FORMAT]
176
177 # Maximum number of characters on a single line.
178 max-line-length=80
179
180 # Maximum number of lines in a module
181 max-module-lines=1000
182
183 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
184 # tab).
185 # CHANGED:
186 indent-string='  '
187
188
189 [BASIC]
190
191 # Required attributes for module, separated by a comma
192 required-attributes=
193
194 # List of builtins function names that should not be used, separated by a comma
195 bad-functions=map,filter,apply,input
196
197 # Regular expression which should only match correct module names
198 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
199
200 # Regular expression which should only match correct module level names
201 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
202
203 # Regular expression which should only match correct class names
204 class-rgx=[A-Z_][a-zA-Z0-9]+$
205
206 # Regular expression which should only match correct function names
207 function-rgx=[a-z_][a-z0-9_]{2,30}$
208
209 # Regular expression which should only match correct method names
210 method-rgx=[a-z_][a-z0-9_]{2,30}$
211
212 # Regular expression which should only match correct instance attribute names
213 attr-rgx=[a-z_][a-z0-9_]{2,30}$
214
215 # Regular expression which should only match correct argument names
216 argument-rgx=[a-z_][a-z0-9_]{2,30}$
217
218 # Regular expression which should only match correct variable names
219 variable-rgx=[a-z_][a-z0-9_]{2,30}$
220
221 # Regular expression which should only match correct list comprehension /
222 # generator expression variable names
223 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
224
225 # Good variable names which should always be accepted, separated by a comma
226 good-names=i,j,k,ex,Run,_
227
228 # Bad variable names which should always be refused, separated by a comma
229 bad-names=foo,bar,baz,toto,tutu,tata
230
231 # Regular expression which should only match functions or classes name which do
232 # not require a docstring
233 no-docstring-rgx=__.*__
234
235
236 [DESIGN]
237
238 # Maximum number of arguments for function / method
239 max-args=5
240
241 # Argument names that match this expression will be ignored. Default to name
242 # with leading underscore
243 ignored-argument-names=_.*
244
245 # Maximum number of locals for function / method body
246 max-locals=15
247
248 # Maximum number of return / yield for function / method body
249 max-returns=6
250
251 # Maximum number of branch for function / method body
252 max-branchs=12
253
254 # Maximum number of statements in function / method body
255 max-statements=50
256
257 # Maximum number of parents for a class (see R0901).
258 max-parents=7
259
260 # Maximum number of attributes for a class (see R0902).
261 max-attributes=7
262
263 # Minimum number of public methods for a class (see R0903).
264 min-public-methods=2
265
266 # Maximum number of public methods for a class (see R0904).
267 max-public-methods=20
268
269
270 [CLASSES]
271
272 # List of interface methods to ignore, separated by a comma. This is used for
273 # instance to not check methods defines in Zope's Interface base class.
274 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
275
276 # List of method names used to declare (i.e. assign) instance attributes.
277 defining-attr-methods=__init__,__new__,setUp
278
279 # List of valid names for the first argument in a class method.
280 valid-classmethod-first-arg=cls
281
282
283 [IMPORTS]
284
285 # Deprecated modules which should not be used, separated by a comma
286 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
287
288 # Create a graph of every (i.e. internal and external) dependencies in the
289 # given file (report RP0402 must not be disabled)
290 import-graph=
291
292 # Create a graph of external dependencies in the given file (report RP0402 must
293 # not be disabled)
294 ext-import-graph=
295
296 # Create a graph of internal dependencies in the given file (report RP0402 must
297 # not be disabled)
298 int-import-graph=
299
300
301 [EXCEPTIONS]
302
303 # Exceptions that will emit a warning when being caught. Defaults to
304 # "Exception"
305 overgeneral-exceptions=Exception