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