Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: tools/isolate/pylintrc

Issue 10203013: Remove multiple copies of pylintrc and use the depot_tools' version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/deep_memory_profiler/pylintrc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 <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
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.
35 # C0103: Invalid name ""
36 # C0111: Missing docstring
37 # C0302: Too many lines in module (N)
38 # I0011: Locally disabling WNNNN
39 #
40 # R0801: Similar lines in N files
41 # R0901: Too many ancestors (8/7)
42 # R0902: Too many instance attributes (N/7)
43 # R0903: Too few public methods (N/2)
44 # R0904: Too many public methods (N/20)
45 # R0911: Too many return statements (N/6)
46 # R0912: Too many branches (N/12)
47 # R0913: Too many arguments (N/5)
48 # R0914: Too many local variables (N/15)
49 # R0915: Too many statements (N/50)
50 # R0922: Abstract class is only referenced 1 times
51 # W0122: Use of the exec statement
52 # W0141: Used builtin function ''
53 # W0142: Used * or ** magic
54 # W0232: Class has no __init__ method
55 # W0511: TODO
56 # W0603: Using the global statement
57 # W1201: Specify string format arguments as logging function parameters
58 disable=C0103,C0111,C0302,I0011,R0801,R0901,R0902,R0903,R0904,R0911,R0912,R0913, R0914,R0915,R0922,W0122,W0141,W0142,W0232,W0511,W0603,W1201
59
60
61 [REPORTS]
62
63 # Set the output format. Available formats are text, parseable, colorized, msvs
64 # (visual studio) and html
65 output-format=text
66
67 # Include message's id in output
68 include-ids=yes
69
70 # Put messages in a separate file for each module / package specified on the
71 # command line instead of printing them on stdout. Reports (if any) will be
72 # written in a file name "pylint_global.[txt|html]".
73 files-output=no
74
75 # Tells whether to display a full report or only the messages
76 # CHANGE: No report.
77 reports=no
78
79 # Python expression which should return a note less than 10 (10 is the highest
80 # note). You have access to the variables errors warning, statement which
81 # respectively contain the number of errors / warnings messages and the total
82 # number of statements analyzed. This is used by the global evaluation report
83 # (R0004).
84 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme nt) * 10)
85
86 # Add a comment according to your evaluation note. This is used by the global
87 # evaluation report (R0004).
88 comment=no
89
90
91 [MISCELLANEOUS]
92
93 # List of note tags to take in consideration, separated by a comma.
94 notes=FIXME,XXX,TODO
95
96
97 [FORMAT]
98
99 # Maximum number of characters on a single line.
100 max-line-length=80
101
102 # Maximum number of lines in a module
103 max-module-lines=1000
104
105 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
106 # tab).
107 # CHANGE: Use " " instead.
108 indent-string=' '
109
110
111 [TYPECHECK]
112
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
116
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,hashlib
120
121 # When zope mode is activated, add a predefined set of Zope acquired attributes
122 # to generated-members.
123 zope=no
124
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
128
129
130 [BASIC]
131
132 # Required attributes for module, separated by a comma
133 required-attributes=
134
135 # List of builtins function names that should not be used, separated by a comma
136 bad-functions=map,filter,apply,input
137
138 # Regular expression which should only match correct module names
139 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
140
141 # Regular expression which should only match correct module level names
142 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
143
144 # Regular expression which should only match correct class names
145 class-rgx=[A-Z_][a-zA-Z0-9]+$
146
147 # Regular expression which should only match correct function names
148 function-rgx=[a-z_][a-z0-9_]{2,30}$
149
150 # Regular expression which should only match correct method names
151 method-rgx=[a-z_][a-z0-9_]{2,30}$
152
153 # Regular expression which should only match correct instance attribute names
154 attr-rgx=[a-z_][a-z0-9_]{2,30}$
155
156 # Regular expression which should only match correct argument names
157 argument-rgx=[a-z_][a-z0-9_]{2,30}$
158
159 # Regular expression which should only match correct variable names
160 variable-rgx=[a-z_][a-z0-9_]{2,30}$
161
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_]*$
165
166 # Good variable names which should always be accepted, separated by a comma
167 good-names=i,j,k,ex,Run,_
168
169 # Bad variable names which should always be refused, separated by a comma
170 bad-names=foo,bar,baz,toto,tutu,tata
171
172 # Regular expression which should only match functions or classes name which do
173 # not require a docstring
174 no-docstring-rgx=__.*__
175
176
177 [VARIABLES]
178
179 # Tells whether we should check for unused import in __init__ files.
180 init-import=no
181
182 # A regular expression matching names used for dummy variables (i.e. not used).
183 dummy-variables-rgx=_|dummy
184
185 # List of additional names supposed to be defined in builtins. Remember that
186 # you should avoid to define new builtins when possible.
187 additional-builtins=
188
189
190 [SIMILARITIES]
191
192 # Minimum lines number of a similarity.
193 min-similarity-lines=4
194
195 # Ignore comments when computing similarities.
196 ignore-comments=yes
197
198 # Ignore docstrings when computing similarities.
199 ignore-docstrings=yes
200
201
202 [CLASSES]
203
204 # List of interface methods to ignore, separated by a comma. This is used for
205 # instance to not check methods defines in Zope's Interface base class.
206 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions ,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,ge tTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,a daptWith,is_implemented_by
207
208 # List of method names used to declare (i.e. assign) instance attributes.
209 defining-attr-methods=__init__,__new__,setUp
210
211
212 [DESIGN]
213
214 # Maximum number of arguments for function / method
215 max-args=5
216
217 # Argument names that match this expression will be ignored. Default to name
218 # with leading underscore
219 ignored-argument-names=_.*
220
221 # Maximum number of locals for function / method body
222 max-locals=15
223
224 # Maximum number of return / yield for function / method body
225 max-returns=6
226
227 # Maximum number of branch for function / method body
228 max-branchs=12
229
230 # Maximum number of statements in function / method body
231 max-statements=50
232
233 # Maximum number of parents for a class (see R0901).
234 max-parents=7
235
236 # Maximum number of attributes for a class (see R0902).
237 max-attributes=7
238
239 # Minimum number of public methods for a class (see R0903).
240 min-public-methods=2
241
242 # Maximum number of public methods for a class (see R0904).
243 max-public-methods=20
244
245
246 [IMPORTS]
247
248 # Deprecated modules which should not be used, separated by a comma
249 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
250
251 # Create a graph of every (i.e. internal and external) dependencies in the
252 # given file (report R0402 must not be disabled)
253 import-graph=
254
255 # Create a graph of external dependencies in the given file (report R0402 must
256 # not be disabled)
257 ext-import-graph=
258
259 # Create a graph of internal dependencies in the given file (report R0402 must
260 # not be disabled)
261 int-import-graph=
OLDNEW
« no previous file with comments | « tools/deep_memory_profiler/pylintrc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698