github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-supply-chain-master/.pylintrc (about)

     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  disable=
    64      design,
    65      elif,
    66      similarities,
    67      bad-continuation,
    68      missing-docstring,
    69      no-member,
    70      unused-argument,
    71      locally-disabled,
    72      no-self-use
    73  
    74  [REPORTS]
    75  
    76  # Set the output format. Available formats are text, parseable, colorized, msvs
    77  # (visual studio) and html. You can also give a reporter class, eg
    78  # mypackage.mymodule.MyReporterClass.
    79  output-format=text
    80  
    81  # Put messages in a separate file for each module / package specified on the
    82  # command line instead of printing them on stdout. Reports (if any) will be
    83  # written in a file name "pylint_global.[txt|html]".
    84  files-output=no
    85  
    86  # Tells whether to display a full report or only the messages
    87  reports=yes
    88  
    89  # Python expression which should return a note less than 10 (10 is the highest
    90  # note). You have access to the variables errors warning, statement which
    91  # respectively contain the number of errors / warnings messages and the total
    92  # number of statements analyzed. This is used by the global evaluation report
    93  # (RP0004).
    94  evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
    95  
    96  # Template used to display messages. This is a python new-style format string
    97  # used to format the message information. See doc for all details
    98  #msg-template=
    99  
   100  
   101  [SPELLING]
   102  
   103  # Spelling dictionary name. Available dictionaries: none. To make it working
   104  # install python-enchant package.
   105  spelling-dict=
   106  
   107  # List of comma separated words that should not be checked.
   108  spelling-ignore-words=
   109  
   110  # A path to a file that contains private dictionary; one word per line.
   111  spelling-private-dict-file=
   112  
   113  # Tells whether to store unknown words to indicated private dictionary in
   114  # --spelling-private-dict-file option instead of raising a message.
   115  spelling-store-unknown-words=no
   116  
   117  
   118  [BASIC]
   119  
   120  # List of builtins function names that should not be used, separated by a comma
   121  bad-functions=map,filter,input
   122  
   123  # Good variable names which should always be accepted, separated by a comma
   124  good-names=i,j,k,ex,Run,_
   125  
   126  # Bad variable names which should always be refused, separated by a comma
   127  bad-names=foo,bar,baz,toto,tutu,tata
   128  
   129  # Colon-delimited sets of names that determine each other's naming style when
   130  # the name regexes allow several styles.
   131  name-group=
   132  
   133  # Include a hint for the correct naming format with invalid-name
   134  include-naming-hint=no
   135  
   136  # Regular expression matching correct function names
   137  function-rgx=[a-z_][a-z0-9_]{2,50}$
   138  
   139  # Naming hint for function names
   140  function-name-hint=[a-z_][a-z0-9_]{2,50}$
   141  
   142  # Regular expression matching correct variable names
   143  variable-rgx=[a-z_][a-z0-9_]{0,50}$
   144  
   145  # Naming hint for variable names
   146  variable-name-hint=[a-z_][a-z0-9_]{0,50}$
   147  
   148  # Regular expression matching correct constant names
   149  const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
   150  
   151  # Naming hint for constant names
   152  const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
   153  
   154  # Regular expression matching correct attribute names
   155  attr-rgx=[a-z_][a-z0-9_]{2,30}$
   156  
   157  # Naming hint for attribute names
   158  attr-name-hint=[a-z_][a-z0-9_]{2,30}$
   159  
   160  # Regular expression matching correct argument names
   161  argument-rgx=[a-z_][a-z0-9_]{2,30}$
   162  
   163  # Naming hint for argument names
   164  argument-name-hint=[a-z_][a-z0-9_]{2,50}$
   165  
   166  # Regular expression matching correct class attribute names
   167  class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
   168  
   169  # Naming hint for class attribute names
   170  class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
   171  
   172  # Regular expression matching correct inline iteration names
   173  inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
   174  
   175  # Naming hint for inline iteration names
   176  inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
   177  
   178  # Regular expression matching correct class names
   179  class-rgx=[A-Z_][a-zA-Z0-9]+$
   180  
   181  # Naming hint for class names
   182  class-name-hint=[A-Z_][a-zA-Z0-9]+$
   183  
   184  # Regular expression matching correct module names
   185  module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
   186  
   187  # Naming hint for module names
   188  module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
   189  
   190  # Regular expression matching correct method names
   191  method-rgx=[a-z_][a-z0-9_]{2,50}$
   192  
   193  # Naming hint for method names
   194  method-name-hint=[a-z_][a-z0-9_]{2,30}$
   195  
   196  # Regular expression which should only match function or class names that do
   197  # not require a docstring.
   198  no-docstring-rgx=^_
   199  
   200  # Minimum line length for functions/classes that require docstrings, shorter
   201  # ones are exempt.
   202  docstring-min-length=-1
   203  
   204  
   205  [ELIF]
   206  
   207  # Maximum number of nested blocks for function / method body
   208  max-nested-blocks=5
   209  
   210  
   211  [MISCELLANEOUS]
   212  
   213  # List of note tags to take in consideration, separated by a comma.
   214  notes=FIXME,XXX,TODO
   215  
   216  
   217  [SIMILARITIES]
   218  
   219  # Minimum lines number of a similarity.
   220  min-similarity-lines=4
   221  
   222  # Ignore comments when computing similarities.
   223  ignore-comments=yes
   224  
   225  # Ignore docstrings when computing similarities.
   226  ignore-docstrings=yes
   227  
   228  # Ignore imports when computing similarities.
   229  ignore-imports=no
   230  
   231  
   232  [LOGGING]
   233  
   234  # Logging modules to check that the string format arguments are in logging
   235  # function parameter format
   236  logging-modules=logging
   237  
   238  
   239  [FORMAT]
   240  
   241  # Maximum number of characters on a single line.
   242  max-line-length=80
   243  
   244  # Regexp for a line that is allowed to be longer than the limit.
   245  ignore-long-lines=^\s*(# )?<?https?://\S+>?$
   246  
   247  # Allow the body of an if to be on the same line as the test if there is no
   248  # else.
   249  single-line-if-stmt=no
   250  
   251  # List of optional constructs for which whitespace checking is disabled. `dict-
   252  # separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
   253  # `trailing-comma` allows a space between comma and closing bracket: (a, ).
   254  # `empty-line` allows space-only lines.
   255  no-space-check=trailing-comma,dict-separator
   256  
   257  # Maximum number of lines in a module
   258  max-module-lines=1000
   259  
   260  # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
   261  # tab).
   262  indent-string='    '
   263  
   264  # Number of spaces of indent required inside a hanging  or continued line.
   265  indent-after-paren=4
   266  
   267  # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
   268  expected-line-ending-format=
   269  
   270  
   271  [VARIABLES]
   272  
   273  # Tells whether we should check for unused import in __init__ files.
   274  init-import=no
   275  
   276  # A regular expression matching the name of dummy variables (i.e. expectedly
   277  # not used).
   278  dummy-variables-rgx=_$|dummy
   279  
   280  # List of additional names supposed to be defined in builtins. Remember that
   281  # you should avoid to define new builtins when possible.
   282  additional-builtins=
   283  
   284  # List of strings which can identify a callback function by name. A callback
   285  # name must start or end with one of those strings.
   286  callbacks=cb_,_cb
   287  
   288  
   289  [TYPECHECK]
   290  
   291  # Tells whether missing members accessed in mixin class should be ignored. A
   292  # mixin class is detected if its name ends with "mixin" (case insensitive).
   293  ignore-mixin-members=yes
   294  
   295  # List of module names for which member attributes should not be checked
   296  # (useful for modules/projects where namespaces are manipulated during runtime
   297  # and thus existing member attributes cannot be deduced by static analysis. It
   298  # supports qualified module names, as well as Unix pattern matching.
   299  ignored-modules=
   300  
   301  # List of classes names for which member attributes should not be checked
   302  # (useful for classes with attributes dynamically set). This supports can work
   303  # with qualified names.
   304  ignored-classes=
   305  
   306  # List of members which are set dynamically and missed by pylint inference
   307  # system, and so shouldn't trigger E1101 when accessed. Python regular
   308  # expressions are accepted.
   309  generated-members=
   310  
   311  
   312  [CLASSES]
   313  
   314  # List of method names used to declare (i.e. assign) instance attributes.
   315  defining-attr-methods=__init__,__new__,setUp
   316  
   317  # List of valid names for the first argument in a class method.
   318  valid-classmethod-first-arg=cls
   319  
   320  # List of valid names for the first argument in a metaclass class method.
   321  valid-metaclass-classmethod-first-arg=mcs
   322  
   323  # List of member names, which should be excluded from the protected access
   324  # warning.
   325  exclude-protected=_asdict,_fields,_replace,_source,_make
   326  
   327  
   328  [IMPORTS]
   329  
   330  # Deprecated modules which should not be used, separated by a comma
   331  deprecated-modules=regsub,TERMIOS,Bastion,rexec
   332  
   333  # Create a graph of every (i.e. internal and external) dependencies in the
   334  # given file (report RP0402 must not be disabled)
   335  import-graph=
   336  
   337  # Create a graph of external dependencies in the given file (report RP0402 must
   338  # not be disabled)
   339  ext-import-graph=
   340  
   341  # Create a graph of internal dependencies in the given file (report RP0402 must
   342  # not be disabled)
   343  int-import-graph=
   344  
   345  
   346  [DESIGN]
   347  
   348  # Maximum number of arguments for function / method
   349  max-args=5
   350  
   351  # Argument names that match this expression will be ignored. Default to name
   352  # with leading underscore
   353  ignored-argument-names=_.*
   354  
   355  # Maximum number of locals for function / method body
   356  max-locals=15
   357  
   358  # Maximum number of return / yield for function / method body
   359  max-returns=6
   360  
   361  # Maximum number of branch for function / method body
   362  max-branches=12
   363  
   364  # Maximum number of statements in function / method body
   365  max-statements=50
   366  
   367  # Maximum number of parents for a class (see R0901).
   368  max-parents=7
   369  
   370  # Maximum number of attributes for a class (see R0902).
   371  max-attributes=7
   372  
   373  # Minimum number of public methods for a class (see R0903).
   374  min-public-methods=2
   375  
   376  # Maximum number of public methods for a class (see R0904).
   377  max-public-methods=20
   378  
   379  # Maximum number of boolean expressions in a if statement
   380  max-bool-expr=5
   381  
   382  
   383  [EXCEPTIONS]
   384  
   385  # Exceptions that will emit a warning when being caught. Defaults to
   386  # "Exception"
   387  overgeneral-exceptions=Exception