mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 12:58:54 -05:00
update pylintrc (#3618)
This commit is contained in:
parent
884462d615
commit
8466460311
1 changed files with 29 additions and 24 deletions
|
@ -7,9 +7,6 @@
|
||||||
# pygtk.require().
|
# pygtk.require().
|
||||||
#init-hook=
|
#init-hook=
|
||||||
|
|
||||||
# Profiled execution.
|
|
||||||
profile=no
|
|
||||||
|
|
||||||
# Add files or directories to the blacklist. They should be base names, not
|
# Add files or directories to the blacklist. They should be base names, not
|
||||||
# paths.
|
# paths.
|
||||||
ignore=CVS
|
ignore=CVS
|
||||||
|
@ -17,11 +14,6 @@ ignore=CVS
|
||||||
# Pickle collected data for later comparisons.
|
# Pickle collected data for later comparisons.
|
||||||
persistent=yes
|
persistent=yes
|
||||||
|
|
||||||
# List of plugins (as comma separated values of python modules names) to load,
|
|
||||||
# usually to register additional checkers.
|
|
||||||
load-plugins=
|
|
||||||
|
|
||||||
|
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
|
|
||||||
# Enable the message, report, category or checker with the given id(s). You can
|
# Enable the message, report, category or checker with the given id(s). You can
|
||||||
|
@ -93,31 +85,56 @@ disable=
|
||||||
logging-not-lazy,
|
logging-not-lazy,
|
||||||
bad-continuation,
|
bad-continuation,
|
||||||
anomalous-backslash-in-string,
|
anomalous-backslash-in-string,
|
||||||
|
assigning-non-slot,
|
||||||
bad-context-manager,
|
bad-context-manager,
|
||||||
bad-indentation,
|
bad-indentation,
|
||||||
bad-str-strip-call,
|
bad-str-strip-call,
|
||||||
|
bad-super-call,
|
||||||
bad-whitespace,
|
bad-whitespace,
|
||||||
cell-var-from-loop,
|
cell-var-from-loop,
|
||||||
|
consider-using-enumerate,
|
||||||
deprecated-lambda,
|
deprecated-lambda,
|
||||||
|
deprecated-method,
|
||||||
eval-used,
|
eval-used,
|
||||||
function-redefined,
|
function-redefined,
|
||||||
import-error,
|
import-error,
|
||||||
|
invalid-docstring-quote,
|
||||||
|
invalid-string-quote,
|
||||||
|
invalid-triple-quote,
|
||||||
locally-enabled,
|
locally-enabled,
|
||||||
|
misplaced-comparison-constant,
|
||||||
|
misplaced-bare-raise,
|
||||||
missing-final-newline,
|
missing-final-newline,
|
||||||
|
multiple-imports,
|
||||||
no-init,
|
no-init,
|
||||||
no-name-in-module,
|
no-name-in-module,
|
||||||
|
no-self-argument,
|
||||||
no-self-use,
|
no-self-use,
|
||||||
|
not-an-iterable,
|
||||||
not-callable,
|
not-callable,
|
||||||
old-style-class,
|
old-style-class,
|
||||||
protected-access,
|
protected-access,
|
||||||
|
redefined-variable-type,
|
||||||
|
simplifiable-if-statement,
|
||||||
|
singleton-comparison,
|
||||||
superfluous-parens,
|
superfluous-parens,
|
||||||
super-on-old-class,
|
super-on-old-class,
|
||||||
|
too-many-boolean-expressions,
|
||||||
too-many-function-args,
|
too-many-function-args,
|
||||||
|
too-many-nested-blocks,
|
||||||
trailing-whitespace,
|
trailing-whitespace,
|
||||||
|
undefined-variable,
|
||||||
|
ungrouped-imports,
|
||||||
unnecessary-semicolon,
|
unnecessary-semicolon,
|
||||||
|
unneeded-not,
|
||||||
unpacking-non-sequence,
|
unpacking-non-sequence,
|
||||||
|
unsubscriptable-object,
|
||||||
|
unsupported-membership-test,
|
||||||
unused-import,
|
unused-import,
|
||||||
useless-else-on-loop
|
useless-else-on-loop,
|
||||||
|
using-constant-test,
|
||||||
|
wrong-import-order,
|
||||||
|
wrong-import-position,
|
||||||
|
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
|
@ -135,6 +152,9 @@ files-output=no
|
||||||
# CHANGED:
|
# CHANGED:
|
||||||
reports=no
|
reports=no
|
||||||
|
|
||||||
|
# Activate the evaluation score.
|
||||||
|
score=no
|
||||||
|
|
||||||
# Python expression which should return a note less than 10 (10 is the highest
|
# Python expression which should return a note less than 10 (10 is the highest
|
||||||
# note). You have access to the variables errors warning, statement which
|
# note). You have access to the variables errors warning, statement which
|
||||||
# respectively contain the number of errors / warnings messages and the total
|
# respectively contain the number of errors / warnings messages and the total
|
||||||
|
@ -142,10 +162,6 @@ reports=no
|
||||||
# (RP0004).
|
# (RP0004).
|
||||||
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
|
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
|
||||||
|
|
||||||
# Add a comment according to your evaluation note. This is used by the global
|
|
||||||
# evaluation report (RP0004).
|
|
||||||
comment=no
|
|
||||||
|
|
||||||
|
|
||||||
[VARIABLES]
|
[VARIABLES]
|
||||||
|
|
||||||
|
@ -171,10 +187,6 @@ ignore-mixin-members=yes
|
||||||
# (useful for classes with attributes dynamically set).
|
# (useful for classes with attributes dynamically set).
|
||||||
ignored-classes=SQLObject,twisted.internet.reactor,hashlib,google.appengine.api.memcache
|
ignored-classes=SQLObject,twisted.internet.reactor,hashlib,google.appengine.api.memcache
|
||||||
|
|
||||||
# When zope mode is activated, add a predefined set of Zope acquired attributes
|
|
||||||
# to generated-members.
|
|
||||||
zope=no
|
|
||||||
|
|
||||||
# List of members which are set dynamically and missed by pylint inference
|
# List of members which are set dynamically and missed by pylint inference
|
||||||
# system, and so shouldn't trigger E0201 when accessed. Python regular
|
# system, and so shouldn't trigger E0201 when accessed. Python regular
|
||||||
# expressions are accepted.
|
# expressions are accepted.
|
||||||
|
@ -215,9 +227,6 @@ indent-string=' '
|
||||||
|
|
||||||
[BASIC]
|
[BASIC]
|
||||||
|
|
||||||
# Required attributes for module, separated by a comma
|
|
||||||
required-attributes=
|
|
||||||
|
|
||||||
# List of builtins function names that should not be used, separated by a comma
|
# List of builtins function names that should not be used, separated by a comma
|
||||||
bad-functions=map,filter,apply,input
|
bad-functions=map,filter,apply,input
|
||||||
|
|
||||||
|
@ -296,10 +305,6 @@ max-public-methods=20
|
||||||
|
|
||||||
[CLASSES]
|
[CLASSES]
|
||||||
|
|
||||||
# List of interface methods to ignore, separated by a comma. This is used for
|
|
||||||
# instance to not check methods defines in Zope's Interface base class.
|
|
||||||
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
|
|
||||||
|
|
||||||
# List of method names used to declare (i.e. assign) instance attributes.
|
# List of method names used to declare (i.e. assign) instance attributes.
|
||||||
defining-attr-methods=__init__,__new__,setUp
|
defining-attr-methods=__init__,__new__,setUp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue