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