Mercurial > hg > graal-compiler
comparison mxtool/.pylintrc @ 12387:aff825fef0fd
Merge.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 02 Oct 2013 13:26:31 +0200 |
parents | f3e5cbd1efae |
children | 294962c0f3f7 |
comparison
equal
deleted
inserted
replaced
12386:91dbb0b7dc8b | 12387:aff825fef0fd |
---|---|
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=no | |
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. See also the "--disable" option for examples. | |
30 #enable= | |
31 | |
32 # Disable the message, report, category or checker with the given id(s). You | |
33 # can either give multiple identifiers separated by comma (,) or put this | |
34 # option multiple times (only on the command line, not in the configuration | |
35 # file where it should appear only once).You can also use "--disable=all" to | |
36 # disable everything first and then reenable specific checks. For example, if | |
37 # you want to run only the similarities checker, you can use "--disable=all | |
38 # --enable=similarities". If you want to run only the classes checker, but have | |
39 # no Warning level messages displayed, use"--disable=all --enable=classes | |
40 # --disable=W" | |
41 disable=attribute-defined-outside-init,arguments-differ, | |
42 bare-except,global-statement,protected-access,redefined-outer-name, | |
43 unused-argument,star-args,pointless-string-statement,old-style-class, | |
44 too-many-lines,missing-docstring,no-init,no-self-use,too-many-statements, | |
45 too-many-locals,too-few-public-methods,too-many-instance-attributes, | |
46 too-many-arguments,too-many-branches,too-many-public-methods, | |
47 abstract-method | |
48 | |
49 [REPORTS] | |
50 | |
51 # Set the output format. Available formats are text, parseable, colorized, msvs | |
52 # (visual studio) and html. You can also give a reporter class, eg | |
53 # mypackage.mymodule.MyReporterClass. | |
54 output-format=text | |
55 | |
56 # Put messages in a separate file for each module / package specified on the | |
57 # command line instead of printing them on stdout. Reports (if any) will be | |
58 # written in a file name "pylint_global.[txt|html]". | |
59 files-output=no | |
60 | |
61 # Tells whether to display a full report or only the messages | |
62 reports=no | |
63 | |
64 # Python expression which should return a note less than 10 (10 is the highest | |
65 # note). You have access to the variables errors warning, statement which | |
66 # respectively contain the number of errors / warnings messages and the total | |
67 # number of statements analyzed. This is used by the global evaluation report | |
68 # (RP0004). | |
69 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) | |
70 | |
71 # Add a comment according to your evaluation note. This is used by the global | |
72 # evaluation report (RP0004). | |
73 comment=no | |
74 | |
75 # Template used to display messages. This is a python new-style format string | |
76 # used to format the massage information. See doc for all details | |
77 #msg-template= | |
78 | |
79 | |
80 [BASIC] | |
81 | |
82 # Required attributes for module, separated by a comma | |
83 required-attributes= | |
84 | |
85 # List of builtins function names that should not be used, separated by a comma | |
86 bad-functions=filter,apply,input | |
87 | |
88 # Regular expression which should only match correct module names | |
89 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ | |
90 | |
91 # Regular expression which should only match correct module level names | |
92 const-rgx=[a-zA-Z0-9_]{2,30}$ | |
93 | |
94 # Regular expression which should only match correct class names | |
95 class-rgx=[A-Z_][a-zA-Z0-9]+$ | |
96 | |
97 # Regular expression which should only match correct function names | |
98 function-rgx=[a-z_][a-zA-Z0-9_]{1,40}$ | |
99 | |
100 # Regular expression which should only match correct method names | |
101 method-rgx=[a-z_][a-zA-Z0-9_]{2,40}$ | |
102 | |
103 # Regular expression which should only match correct instance attribute names | |
104 attr-rgx=[a-z_][a-zA-Z0-9_]{1,30}$ | |
105 | |
106 # Regular expression which should only match correct argument names | |
107 argument-rgx=[a-z_][a-zA-Z0-9_]{0,30}$ | |
108 | |
109 # Regular expression which should only match correct variable names | |
110 variable-rgx=[a-z_][a-zA-Z0-9_]{0,30}$ | |
111 | |
112 # Regular expression which should only match correct attribute names in class | |
113 # bodies | |
114 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ | |
115 | |
116 # Regular expression which should only match correct list comprehension / | |
117 # generator expression variable names | |
118 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ | |
119 | |
120 # Good variable names which should always be accepted, separated by a comma | |
121 good-names=i,j,k,ex,Run,_ | |
122 | |
123 # Bad variable names which should always be refused, separated by a comma | |
124 bad-names=foo,bar,baz,toto,tutu,tata | |
125 | |
126 # Regular expression which should only match function or class names that do | |
127 # not require a docstring. | |
128 no-docstring-rgx=.* | |
129 | |
130 # Minimum line length for functions/classes that require docstrings, shorter | |
131 # ones are exempt. | |
132 docstring-min-length=-1 | |
133 | |
134 | |
135 [FORMAT] | |
136 | |
137 # Maximum number of characters on a single line. | |
138 max-line-length=300 | |
139 | |
140 # Regexp for a line that is allowed to be longer than the limit. | |
141 ignore-long-lines=^\s*(# )?<?https?://\S+>?$ | |
142 | |
143 # Maximum number of lines in a module | |
144 max-module-lines=1000 | |
145 | |
146 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 | |
147 # tab). | |
148 indent-string=' ' | |
149 | |
150 | |
151 [MISCELLANEOUS] | |
152 | |
153 # List of note tags to take in consideration, separated by a comma. | |
154 notes=FIXME | |
155 | |
156 | |
157 [SIMILARITIES] | |
158 | |
159 # Minimum lines number of a similarity. | |
160 min-similarity-lines=4 | |
161 | |
162 # Ignore comments when computing similarities. | |
163 ignore-comments=yes | |
164 | |
165 # Ignore docstrings when computing similarities. | |
166 ignore-docstrings=yes | |
167 | |
168 # Ignore imports when computing similarities. | |
169 ignore-imports=no | |
170 | |
171 | |
172 [TYPECHECK] | |
173 | |
174 # Tells whether missing members accessed in mixin class should be ignored. A | |
175 # mixin class is detected if its name ends with "mixin" (case insensitive). | |
176 ignore-mixin-members=yes | |
177 | |
178 # List of classes names for which member attributes should not be checked | |
179 # (useful for classes with attributes dynamically set). | |
180 ignored-classes=SQLObject | |
181 | |
182 # When zope mode is activated, add a predefined set of Zope acquired attributes | |
183 # to generated-members. | |
184 zope=no | |
185 | |
186 # List of members which are set dynamically and missed by pylint inference | |
187 # system, and so shouldn't trigger E0201 when accessed. Python regular | |
188 # expressions are accepted. | |
189 generated-members=REQUEST,acl_users,aq_parent | |
190 | |
191 | |
192 [VARIABLES] | |
193 | |
194 # Tells whether we should check for unused import in __init__ files. | |
195 init-import=no | |
196 | |
197 # A regular expression matching the beginning of the name of dummy variables | |
198 # (i.e. not used). | |
199 dummy-variables-rgx=_$|dummy | |
200 | |
201 # List of additional names supposed to be defined in builtins. Remember that | |
202 # you should avoid to define new builtins when possible. | |
203 additional-builtins= | |
204 | |
205 | |
206 [CLASSES] | |
207 | |
208 # List of interface methods to ignore, separated by a comma. This is used for | |
209 # instance to not check methods defines in Zope's Interface base class. | |
210 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by | |
211 | |
212 # List of method names used to declare (i.e. assign) instance attributes. | |
213 defining-attr-methods=__init__,__new__,setUp | |
214 | |
215 # List of valid names for the first argument in a class method. | |
216 valid-classmethod-first-arg=cls | |
217 | |
218 # List of valid names for the first argument in a metaclass class method. | |
219 valid-metaclass-classmethod-first-arg=mcs | |
220 | |
221 | |
222 [DESIGN] | |
223 | |
224 # Maximum number of arguments for function / method | |
225 max-args=5 | |
226 | |
227 # Argument names that match this expression will be ignored. Default to name | |
228 # with leading underscore | |
229 ignored-argument-names=_.* | |
230 | |
231 # Maximum number of locals for function / method body | |
232 max-locals=15 | |
233 | |
234 # Maximum number of return / yield for function / method body | |
235 max-returns=6 | |
236 | |
237 # Maximum number of branch for function / method body | |
238 max-branches=12 | |
239 | |
240 # Maximum number of statements in function / method body | |
241 max-statements=50 | |
242 | |
243 # Maximum number of parents for a class (see R0901). | |
244 max-parents=7 | |
245 | |
246 # Maximum number of attributes for a class (see R0902). | |
247 max-attributes=7 | |
248 | |
249 # Minimum number of public methods for a class (see R0903). | |
250 min-public-methods=2 | |
251 | |
252 # Maximum number of public methods for a class (see R0904). | |
253 max-public-methods=20 | |
254 | |
255 | |
256 [IMPORTS] | |
257 | |
258 # Deprecated modules which should not be used, separated by a comma | |
259 deprecated-modules=regsub,TERMIOS,Bastion,rexec | |
260 | |
261 # Create a graph of every (i.e. internal and external) dependencies in the | |
262 # given file (report RP0402 must not be disabled) | |
263 import-graph= | |
264 | |
265 # Create a graph of external dependencies in the given file (report RP0402 must | |
266 # not be disabled) | |
267 ext-import-graph= | |
268 | |
269 # Create a graph of internal dependencies in the given file (report RP0402 must | |
270 # not be disabled) | |
271 int-import-graph= | |
272 | |
273 | |
274 [EXCEPTIONS] | |
275 | |
276 # Exceptions that will emit a warning when being caught. Defaults to | |
277 # "Exception" | |
278 overgeneral-exceptions=Exception |