Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 259 lines (172 sloc) 8.242 kB
c32f535 @uniomni Made Jenkins ignore rule E0611 until issue #293 has been resolved
uniomni authored
1 [MESSAGES CONTROL]
2
3 # Disable the message, report, category or checker with the given id(s). You
4 # can either give multiple identifier separated by comma (,) or put this option
5 # multiple time (only on the command line, not in the configuration file where
6 # it should appear only once).
d14cbaa @timlinux Pylint fixes for release
timlinux authored
7 disable=R,I,W0404,W0142,W0201,W0212,W0231,W0232,W0403,W0511,E0611,E1103,E1101,E1002,C0103,C0111,C0302,W1201,C0325,C1001,super-on-old-class,unpacking-non-sequence
c32f535 @uniomni Made Jenkins ignore rule E0611 until issue #293 has been resolved
uniomni authored
8
9 # Note W0404 should only be disabled on Ole's home computer running pylint
10 # version
11 #disable=R,I,W0142,W0201,W0212,W0231,W0232,W0403,W0404,W0511,E1103,E1101,C0103,C0111,C0302
12 #pylint 0.23.0,
13 #astng 0.21.1, common 0.55.0
14 #Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
15 #[GCC 4.5.2]
16
17
18 # Enable the message, report, category or checker with the given id(s). You can
19 # either give multiple identifier separated by comma (,) or put this option
20 # multiple time.
21 enable=
22
23
24 [MASTER]
25
26 # Specify a configuration file.
27 #rcfile=
28
29 # Python code to execute, usually for sys.path manipulation such as
30 # pygtk.require().
31 #init-hook=
32
33 # Profiled execution.
34 profile=no
35
36 # Add files or directories to the blacklist. They should be base names, not
37 # paths.
aa8cbad @timlinux Changed third_party module to safe_extras since third_party is common…
timlinux authored
38 ignore=safe_extras,PyQt4,ast,colorsys,ctypes,decimal,encodings,numpy,osgeo,raven,subprocess,urllib2,uuid,webbroser,odict.py,help_base.py,keywords_dialog_base.py,wizard_dialog_base.py,options_dialog_base.py,dock_base.py,resources.py,resources_rc.py,function_browser_base.py,function_options_dialog_base.py,minimum_needs_base.py,osm_downloader_base.py,shakemap_importer_base.py,osm_downloader_base.py,batch_dialog_base.py,impact_merge_dialog_base.py,impact_report_dialog_base.py,about_dialog_base.py,extent_selector_base.py
c32f535 @uniomni Made Jenkins ignore rule E0611 until issue #293 has been resolved
uniomni authored
39
40 # Pickle collected data for later comparisons.
41 persistent=yes
42
43 # List of plugins (as comma separated values of python modules names) to load,
44 # usually to register additional checkers.
45 load-plugins=
46
47
48 [REPORTS]
49
50 # Set the output format. Available formats are text, parseable, colorized, msvs
51 # (visual studio) and html
52 output-format=text
53
54 # Include message's id in output
8e83757 @timlinux Removed deprecated pylintrc include-ids flag for jenkins pylintrc
timlinux authored
55 # include-ids=no
c32f535 @uniomni Made Jenkins ignore rule E0611 until issue #293 has been resolved
uniomni authored
56
57 # Put messages in a separate file for each module / package specified on the
58 # command line instead of printing them on stdout. Reports (if any) will be
59 # written in a file name "pylint_global.[txt|html]".
60 files-output=no
61
62 # Tells whether to display a full report or only the messages
63 reports=yes
64
65 # Python expression which should return a note less than 10 (10 is the highest
66 # note). You have access to the variables errors warning, statement which
67 # respectively contain the number of errors / warnings messages and the total
68 # number of statements analyzed. This is used by the global evaluation report
69 # (RP0004).
70 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
71
72 # Add a comment according to your evaluation note. This is used by the global
73 # evaluation report (RP0004).
74 comment=no
75
76
77 [FORMAT]
78
79 # Maximum number of characters on a single line.
80 max-line-length=80
81
82 # Maximum number of lines in a module
83 max-module-lines=1000
84
85 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
86 # tab).
87 indent-string=' '
88
89
90 [VARIABLES]
91
92 # Tells whether we should check for unused import in __init__ files.
93 init-import=no
94
95 # A regular expression matching the beginning of the name of dummy variables
96 # (i.e. not used).
97 dummy-variables-rgx=_|dummy
98
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=
102
103
104 [SIMILARITIES]
105
106 # Minimum lines number of a similarity.
107 min-similarity-lines=4
108
109 # Ignore comments when computing similarities.
110 ignore-comments=yes
111
112 # Ignore docstrings when computing similarities.
113 ignore-docstrings=yes
114
115
116 [BASIC]
117
118 # Required attributes for module, separated by a comma
119 required-attributes=
120
121 # List of builtins function names that should not be used, separated by a comma
122 bad-functions=map,filter,apply,input
123
124 # Regular expression which should only match correct module names
125 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
126
127 # Regular expression which should only match correct module level names
128 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
129
130 # Regular expression which should only match correct class names
131 class-rgx=[A-Z_][a-zA-Z0-9]+$
132
133 # Regular expression which should only match correct function names
134 function-rgx=[a-z_][a-z0-9_]{2,30}$
135
136 # Regular expression which should only match correct method names
137 method-rgx=[A-Za-z_][a-z0-9_]{2,30}$
138
139 # Regular expression which should only match correct instance attribute names
140 attr-rgx=[a-z_][A-Za-z0-9_]{2,30}$
141
142 # Regular expression which should only match correct argument names
143 argument-rgx=[a-z_][A-Za-z0-9_]{2,30}$
144
145 # Regular expression which should only match correct variable names
146 variable-rgx=[a-z_][A-Za-z0-9_]{2,30}$
147
148 # Regular expression which should only match correct list comprehension /
149 # generator expression variable names
150 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
151
152 # Good variable names which should always be accepted, separated by a comma
153 good-names=i,j,k,ex,Run,_
154
155 # Bad variable names which should always be refused, separated by a comma
156 bad-names=foo,bar,baz,toto,tutu,tata
157
158 # Regular expression which should only match functions or classes name which do
159 # not require a docstring
160 no-docstring-rgx=__.*__
161
162
163 [TYPECHECK]
164
165 # Tells whether missing members accessed in mixin class should be ignored. A
166 # mixin class is detected if its name ends with "mixin" (case insensitive).
167 ignore-mixin-members=yes
168
169 # List of classes names for which member attributes should not be checked
170 # (useful for classes with attributes dynamically set).
171 ignored-classes=SQLObject
172
173 # When zope mode is activated, add a predefined set of Zope acquired attributes
174 # to generated-members.
175 zope=no
176
177 # List of members which are set dynamically and missed by pylint inference
178 # system, and so shouldn't trigger E0201 when accessed. Python regular
179 # expressions are accepted.
180 generated-members=REQUEST,acl_users,aq_parent
181
182
183 [MISCELLANEOUS]
184
185 # List of note tags to take in consideration, separated by a comma.
186 notes=FIXME,XXX,TODO
187
188
189 [DESIGN]
190
191 # Maximum number of arguments for function / method
192 max-args=5
193
194 # Argument names that match this expression will be ignored. Default to name
195 # with leading underscore
196 ignored-argument-names=_.*
197
198 # Maximum number of locals for function / method body
199 max-locals=15
200
201 # Maximum number of return / yield for function / method body
202 max-returns=6
203
204 # Maximum number of branch for function / method body
205 max-branchs=12
206
207 # Maximum number of statements in function / method body
208 max-statements=50
209
210 # Maximum number of parents for a class (see R0901).
211 max-parents=7
212
213 # Maximum number of attributes for a class (see R0902).
214 max-attributes=7
215
216 # Minimum number of public methods for a class (see R0903).
217 min-public-methods=2
218
219 # Maximum number of public methods for a class (see R0904).
220 max-public-methods=20
221
222
223 [CLASSES]
224
225 # List of interface methods to ignore, separated by a comma. This is used for
226 # instance to not check methods defines in Zope's Interface base class.
227 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
228
229 # List of method names used to declare (i.e. assign) instance attributes.
230 defining-attr-methods=__init__,__new__,setUp
231
232 # List of valid names for the first argument in a class method.
233 valid-classmethod-first-arg=cls
234
235
236 [IMPORTS]
237
238 # Deprecated modules which should not be used, separated by a comma
239 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
240
241 # Create a graph of every (i.e. internal and external) dependencies in the
242 # given file (report RP0402 must not be disabled)
243 import-graph=
244
245 # Create a graph of external dependencies in the given file (report RP0402 must
246 # not be disabled)
247 ext-import-graph=
248
249 # Create a graph of internal dependencies in the given file (report RP0402 must
250 # not be disabled)
251 int-import-graph=
252
253
254 [EXCEPTIONS]
255
256 # Exceptions that will emit a warning when being caught. Defaults to
257 # "Exception"
258 overgeneral-exceptions=Exception
Something went wrong with that request. Please try again.