|
| 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 | +# Add files or directories to the blacklist. They should be base names, not |
| 11 | +# paths. |
| 12 | +ignore=CVS |
| 13 | + |
| 14 | +# Pickle collected data for later comparisons. |
| 15 | +persistent=yes |
| 16 | + |
| 17 | +# List of plugins (as comma separated values of python modules names) to load, |
| 18 | +# usually to register additional checkers. |
| 19 | +load-plugins= |
| 20 | + |
| 21 | +# Use multiple processes to speed up Pylint. |
| 22 | +jobs=1 |
| 23 | + |
| 24 | +# Allow loading of arbitrary C extensions. Extensions are imported into the |
| 25 | +# active Python interpreter and may run arbitrary code. |
| 26 | +unsafe-load-any-extension=no |
| 27 | + |
| 28 | +# A comma-separated list of package or module names from where C extensions may |
| 29 | +# be loaded. Extensions are loading into the active Python interpreter and may |
| 30 | +# run arbitrary code |
| 31 | +extension-pkg-whitelist= |
| 32 | + |
| 33 | +# Allow optimization of some AST trees. This will activate a peephole AST |
| 34 | +# optimizer, which will apply various small optimizations. For instance, it can |
| 35 | +# be used to obtain the result of joining multiple strings with the addition |
| 36 | +# operator. Joining a lot of strings can lead to a maximum recursion error in |
| 37 | +# Pylint and this flag can prevent that. It has one side effect, the resulting |
| 38 | +# AST will be different than the one from reality. |
| 39 | +optimize-ast=no |
| 40 | + |
| 41 | + |
| 42 | +[MESSAGES CONTROL] |
| 43 | + |
| 44 | +# Only show warnings with the listed confidence levels. Leave empty to show |
| 45 | +# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED |
| 46 | +confidence= |
| 47 | + |
| 48 | +# Enable the message, report, category or checker with the given id(s). You can |
| 49 | +# either give multiple identifier separated by comma (,) or put this option |
| 50 | +# multiple time (only on the command line, not in the configuration file where |
| 51 | +# it should appear only once). See also the "--disable" option for examples. |
| 52 | +#enable= |
| 53 | + |
| 54 | +# Disable the message, report, category or checker with the given id(s). You |
| 55 | +# can either give multiple identifiers separated by comma (,) or put this |
| 56 | +# option multiple times (only on the command line, not in the configuration |
| 57 | +# file where it should appear only once).You can also use "--disable=all" to |
| 58 | +# disable everything first and then reenable specific checks. For example, if |
| 59 | +# you want to run only the similarities checker, you can use "--disable=all |
| 60 | +# --enable=similarities". If you want to run only the classes checker, but have |
| 61 | +# no Warning level messages displayed, use"--disable=all --enable=classes |
| 62 | +# --disable=W" |
| 63 | +# Default pylint configuration |
| 64 | +# disable=import-star-module-level,old-octal-literal,oct-method,print-statement,unpacking-in-except,parameter-unpacking,backtick,old-raise-syntax,old-ne-operator,long-suffix,dict-view-method,dict-iter-method,metaclass-assignment,next-method-called,raising-string,indexing-exception,raw_input-builtin,long-builtin,file-builtin,execfile-builtin,coerce-builtin,cmp-builtin,buffer-builtin,basestring-builtin,apply-builtin,filter-builtin-not-iterating,using-cmp-argument,useless-suppression,range-builtin-not-iterating,suppressed-message,no-absolute-import,old-division,cmp-method,reload-builtin,zip-builtin-not-iterating,intern-builtin,unichr-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,input-builtin,round-builtin,hex-method,nonzero-method,map-builtin-not-iterating |
| 65 | +# My disabled: |
| 66 | +# C0103: invalid constant name for global variables. |
| 67 | +# [W0703(broad-except), Application.initialize] Catching too general exception Exception |
| 68 | +# [R0912(too-many-branches), FrontEnd.search_hosts_and_services] Too many branches (50/12) |
| 69 | +# [R0915(too-many-statements), FrontEnd.search_hosts_and_services] Too many statements (105/50) |
| 70 | +# [R0902(too-many-instance-attributes), FrontEnd] Too many instance attributes (9/7) |
| 71 | +# [R0801(duplicate-code), ] Similar lines in 2 files |
| 72 | +# [R0401(cyclic-import), ] Cyclic import (alignak_webui -> alignak_webui.views) |
| 73 | +# [R0201(no-self-use), Helper.get_url] Method could be a function |
| 74 | +# [C0302(too-many-lines), ] Too many lines in module (1005/1000) |
| 75 | +# [W0406(import-self), ] Module import itself |
| 76 | +# [E1101(no-member), show_event_post] Method 'query' has no 'get' member |
| 77 | +# [E1101(no-member), post_event] Method 'forms' has no 'get' member |
| 78 | +disable=import-star-module-level,old-octal-literal,oct-method,print-statement,unpacking-in-except,parameter-unpacking,backtick,old-raise-syntax,old-ne-operator,long-suffix,dict-view-method,dict-iter-method,metaclass-assignment,next-method-called,raising-string,indexing-exception,raw_input-builtin,long-builtin,file-builtin,execfile-builtin,coerce-builtin,cmp-builtin,buffer-builtin,basestring-builtin,apply-builtin,filter-builtin-not-iterating,using-cmp-argument,useless-suppression,range-builtin-not-iterating,suppressed-message,no-absolute-import,old-division,cmp-method,reload-builtin,zip-builtin-not-iterating,intern-builtin,unichr-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,input-builtin,round-builtin,hex-method,nonzero-method,map-builtin-not-iterating,C0103,W0703,R0912,R0915,R0902,R0801,R0201,C0302,W0406,E1101,W0611 |
| 79 | + |
| 80 | + |
| 81 | +[REPORTS] |
| 82 | + |
| 83 | +# Set the output format. Available formats are text, parseable, colorized, msvs |
| 84 | +# (visual studio) and html. You can also give a reporter class, eg |
| 85 | +# mypackage.mymodule.MyReporterClass. |
| 86 | +output-format=text |
| 87 | + |
| 88 | +# Put messages in a separate file for each module / package specified on the |
| 89 | +# command line instead of printing them on stdout. Reports (if any) will be |
| 90 | +# written in a file name "pylint_global.[txt|html]". |
| 91 | +files-output=no |
| 92 | + |
| 93 | +# Tells whether to display a full report or only the messages |
| 94 | +reports=no |
| 95 | + |
| 96 | +# Python expression which should return a note less than 10 (10 is the highest |
| 97 | +# note). You have access to the variables errors warning, statement which |
| 98 | +# respectively contain the number of errors / warnings messages and the total |
| 99 | +# number of statements analyzed. This is used by the global evaluation report |
| 100 | +# (RP0004). |
| 101 | +evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 102 | + |
| 103 | +# Template used to display messages. This is a python new-style format string |
| 104 | +# used to format the message information. See doc for all details |
| 105 | +#msg-template= |
| 106 | + |
| 107 | + |
| 108 | +[VARIABLES] |
| 109 | + |
| 110 | +# Tells whether we should check for unused import in __init__ files. |
| 111 | +init-import=no |
| 112 | + |
| 113 | +# A regular expression matching the name of dummy variables (i.e. expectedly |
| 114 | +# not used). |
| 115 | +dummy-variables-rgx=_$|dummy |
| 116 | + |
| 117 | +# List of additional names supposed to be defined in builtins. Remember that |
| 118 | +# you should avoid to define new builtins when possible. |
| 119 | +additional-builtins=_ |
| 120 | + |
| 121 | +# List of strings which can identify a callback function by name. A callback |
| 122 | +# name must start or end with one of those strings. |
| 123 | +callbacks=cb_,_cb |
| 124 | + |
| 125 | + |
| 126 | +[FORMAT] |
| 127 | + |
| 128 | +# Maximum number of characters on a single line. |
| 129 | +max-line-length=100 |
| 130 | + |
| 131 | +# Regexp for a line that is allowed to be longer than the limit. |
| 132 | +ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
| 133 | + |
| 134 | +# Allow the body of an if to be on the same line as the test if there is no |
| 135 | +# else. |
| 136 | +single-line-if-stmt=no |
| 137 | + |
| 138 | +# List of optional constructs for which whitespace checking is disabled. `dict- |
| 139 | +# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. |
| 140 | +# `trailing-comma` allows a space between comma and closing bracket: (a, ). |
| 141 | +# `empty-line` allows space-only lines. |
| 142 | +no-space-check=trailing-comma,dict-separator |
| 143 | + |
| 144 | +# Maximum number of lines in a module |
| 145 | +max-module-lines=1000 |
| 146 | + |
| 147 | +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 148 | +# tab). |
| 149 | +indent-string=' ' |
| 150 | + |
| 151 | +# Number of spaces of indent required inside a hanging or continued line. |
| 152 | +indent-after-paren=4 |
| 153 | + |
| 154 | +# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. |
| 155 | +expected-line-ending-format= |
| 156 | + |
| 157 | + |
| 158 | +[BASIC] |
| 159 | + |
| 160 | +# List of builtins function names that should not be used, separated by a comma |
| 161 | +bad-functions=map,filter,input |
| 162 | + |
| 163 | +# Good variable names which should always be accepted, separated by a comma |
| 164 | +good-names=i,j,k,ex,Run,_ |
| 165 | + |
| 166 | +# Bad variable names which should always be refused, separated by a comma |
| 167 | +bad-names=foo,bar,baz,toto,tutu,tata |
| 168 | + |
| 169 | +# Colon-delimited sets of names that determine each other's naming style when |
| 170 | +# the name regexes allow several styles. |
| 171 | +name-group= |
| 172 | + |
| 173 | +# Include a hint for the correct naming format with invalid-name |
| 174 | +include-naming-hint=no |
| 175 | + |
| 176 | +# Regular expression matching correct function names |
| 177 | +function-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 178 | + |
| 179 | +# Naming hint for function names |
| 180 | +function-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 181 | + |
| 182 | +# Regular expression matching correct variable names |
| 183 | +variable-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 184 | + |
| 185 | +# Naming hint for variable names |
| 186 | +variable-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 187 | + |
| 188 | +# Regular expression matching correct constant names |
| 189 | +const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 190 | + |
| 191 | +# Naming hint for constant names |
| 192 | +const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 193 | + |
| 194 | +# Regular expression matching correct attribute names |
| 195 | +attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 196 | + |
| 197 | +# Naming hint for attribute names |
| 198 | +attr-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 199 | + |
| 200 | +# Regular expression matching correct argument names |
| 201 | +argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 202 | + |
| 203 | +# Naming hint for argument names |
| 204 | +argument-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 205 | + |
| 206 | +# Regular expression matching correct class attribute names |
| 207 | +class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 208 | + |
| 209 | +# Naming hint for class attribute names |
| 210 | +class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 211 | + |
| 212 | +# Regular expression matching correct inline iteration names |
| 213 | +inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 214 | + |
| 215 | +# Naming hint for inline iteration names |
| 216 | +inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ |
| 217 | + |
| 218 | +# Regular expression matching correct class names |
| 219 | +class-rgx=[A-Z_][a-zA-Z0-9]+$ |
| 220 | + |
| 221 | +# Naming hint for class names |
| 222 | +class-name-hint=[A-Z_][a-zA-Z0-9]+$ |
| 223 | + |
| 224 | +# Regular expression matching correct module names |
| 225 | +module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 226 | + |
| 227 | +# Naming hint for module names |
| 228 | +module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 229 | + |
| 230 | +# Regular expression matching correct method names |
| 231 | +method-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 232 | + |
| 233 | +# Naming hint for method names |
| 234 | +method-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 235 | + |
| 236 | +# Regular expression which should only match function or class names that do |
| 237 | +# not require a docstring. |
| 238 | +no-docstring-rgx=^_ |
| 239 | + |
| 240 | +# Minimum line length for functions/classes that require docstrings, shorter |
| 241 | +# ones are exempt. |
| 242 | +docstring-min-length=-1 |
| 243 | + |
| 244 | + |
| 245 | +[ELIF] |
| 246 | + |
| 247 | +# Maximum number of nested blocks for function / method body |
| 248 | +max-nested-blocks=5 |
| 249 | + |
| 250 | + |
| 251 | +[SIMILARITIES] |
| 252 | + |
| 253 | +# Minimum lines number of a similarity. |
| 254 | +min-similarity-lines=4 |
| 255 | + |
| 256 | +# Ignore comments when computing similarities. |
| 257 | +ignore-comments=yes |
| 258 | + |
| 259 | +# Ignore docstrings when computing similarities. |
| 260 | +ignore-docstrings=yes |
| 261 | + |
| 262 | +# Ignore imports when computing similarities. |
| 263 | +ignore-imports=no |
| 264 | + |
| 265 | + |
| 266 | +[MISCELLANEOUS] |
| 267 | + |
| 268 | +# List of note tags to take in consideration, separated by a comma. |
| 269 | +notes=FIXME,XXX,TODO |
| 270 | + |
| 271 | + |
| 272 | +[TYPECHECK] |
| 273 | + |
| 274 | +# Tells whether missing members accessed in mixin class should be ignored. A |
| 275 | +# mixin class is detected if its name ends with "mixin" (case insensitive). |
| 276 | +ignore-mixin-members=yes |
| 277 | + |
| 278 | +# List of module names for which member attributes should not be checked |
| 279 | +# (useful for modules/projects where namespaces are manipulated during runtime |
| 280 | +# and thus existing member attributes cannot be deduced by static analysis. It |
| 281 | +# supports qualified module names, as well as Unix pattern matching. |
| 282 | +ignored-modules= |
| 283 | + |
| 284 | +# List of classes names for which member attributes should not be checked |
| 285 | +# (useful for classes with attributes dynamically set). This supports can work |
| 286 | +# with qualified names. |
| 287 | +ignored-classes= |
| 288 | + |
| 289 | +# List of members which are set dynamically and missed by pylint inference |
| 290 | +# system, and so shouldn't trigger E1101 when accessed. Python regular |
| 291 | +# expressions are accepted. |
| 292 | +generated-members= |
| 293 | + |
| 294 | + |
| 295 | +[LOGGING] |
| 296 | + |
| 297 | +# Logging modules to check that the string format arguments are in logging |
| 298 | +# function parameter format |
| 299 | +logging-modules=logging |
| 300 | + |
| 301 | + |
| 302 | +[SPELLING] |
| 303 | + |
| 304 | +# Spelling dictionary name. Available dictionaries: none. To make it working |
| 305 | +# install python-enchant package. |
| 306 | +spelling-dict= |
| 307 | + |
| 308 | +# List of comma separated words that should not be checked. |
| 309 | +spelling-ignore-words= |
| 310 | + |
| 311 | +# A path to a file that contains private dictionary; one word per line. |
| 312 | +spelling-private-dict-file= |
| 313 | + |
| 314 | +# Tells whether to store unknown words to indicated private dictionary in |
| 315 | +# --spelling-private-dict-file option instead of raising a message. |
| 316 | +spelling-store-unknown-words=no |
| 317 | + |
| 318 | + |
| 319 | +[IMPORTS] |
| 320 | + |
| 321 | +# Deprecated modules which should not be used, separated by a comma |
| 322 | +deprecated-modules=regsub,TERMIOS,Bastion,rexec |
| 323 | + |
| 324 | +# Create a graph of every (i.e. internal and external) dependencies in the |
| 325 | +# given file (report RP0402 must not be disabled) |
| 326 | +import-graph= |
| 327 | + |
| 328 | +# Create a graph of external dependencies in the given file (report RP0402 must |
| 329 | +# not be disabled) |
| 330 | +ext-import-graph= |
| 331 | + |
| 332 | +# Create a graph of internal dependencies in the given file (report RP0402 must |
| 333 | +# not be disabled) |
| 334 | +int-import-graph= |
| 335 | + |
| 336 | + |
| 337 | +[CLASSES] |
| 338 | + |
| 339 | +# List of method names used to declare (i.e. assign) instance attributes. |
| 340 | +defining-attr-methods=__init__,__new__,setUp |
| 341 | + |
| 342 | +# List of valid names for the first argument in a class method. |
| 343 | +valid-classmethod-first-arg=cls |
| 344 | + |
| 345 | +# List of valid names for the first argument in a metaclass class method. |
| 346 | +valid-metaclass-classmethod-first-arg=mcs |
| 347 | + |
| 348 | +# List of member names, which should be excluded from the protected access |
| 349 | +# warning. |
| 350 | +exclude-protected=_asdict,_fields,_replace,_source,_make |
| 351 | + |
| 352 | + |
| 353 | +[DESIGN] |
| 354 | + |
| 355 | +# Maximum number of arguments for function / method |
| 356 | +max-args=5 |
| 357 | + |
| 358 | +# Argument names that match this expression will be ignored. Default to name |
| 359 | +# with leading underscore |
| 360 | +ignored-argument-names=_.* |
| 361 | + |
| 362 | +# Maximum number of locals for function / method body |
| 363 | +max-locals=15 |
| 364 | + |
| 365 | +# Maximum number of return / yield for function / method body |
| 366 | +max-returns=6 |
| 367 | + |
| 368 | +# Maximum number of branch for function / method body |
| 369 | +max-branches=12 |
| 370 | + |
| 371 | +# Maximum number of statements in function / method body |
| 372 | +max-statements=50 |
| 373 | + |
| 374 | +# Maximum number of parents for a class (see R0901). |
| 375 | +max-parents=7 |
| 376 | + |
| 377 | +# Maximum number of attributes for a class (see R0902). |
| 378 | +max-attributes=7 |
| 379 | + |
| 380 | +# Minimum number of public methods for a class (see R0903). |
| 381 | +min-public-methods=2 |
| 382 | + |
| 383 | +# Maximum number of public methods for a class (see R0904). |
| 384 | +max-public-methods=20 |
| 385 | + |
| 386 | +# Maximum number of boolean expressions in a if statement |
| 387 | +max-bool-expr=5 |
| 388 | + |
| 389 | + |
| 390 | +[EXCEPTIONS] |
| 391 | + |
| 392 | +# Exceptions that will emit a warning when being caught. Defaults to |
| 393 | +# "Exception" |
| 394 | +overgeneral-exceptions=Exception |
0 commit comments