зеркало из https://github.com/mozilla/treeherder.git
Bug 1452420 - Update pylintrc to reduce noise
We don't run pylint in CI since it's slow and prone to false positives, however this updated config file makes it less noisy when running on an adhoc basis locally.
This commit is contained in:
Родитель
42acc29e6c
Коммит
164a1f8177
93
pylintrc
93
pylintrc
|
@ -1,38 +1,61 @@
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=abstract-class-little-used,
|
disable=
|
||||||
bad-builtin,
|
# Rules that are unwanted, prone to false positives or a pain to fix.
|
||||||
bad-classmethod-argument,
|
abstract-method,
|
||||||
bad-continuation,
|
arguments-differ,
|
||||||
bad-mcs-classmethod-argument,
|
attribute-defined-outside-init,
|
||||||
bad-mcs-method-argument,
|
bad-continuation,
|
||||||
broad-except,
|
broad-except,
|
||||||
deprecated-lambda,
|
cyclic-import,
|
||||||
empty-docstring,
|
duplicate-code,
|
||||||
fixme,
|
fixme,
|
||||||
invalid-name,
|
inconsistent-return-statements,
|
||||||
line-too-long,
|
invalid-name,
|
||||||
missing-docstring,
|
line-too-long,
|
||||||
no-init,
|
misplaced-comparison-constant,
|
||||||
no-member,
|
missing-docstring,
|
||||||
no-name-in-module,
|
no-else-return,
|
||||||
no-self-argument,
|
no-init,
|
||||||
no-self-use,
|
no-member,
|
||||||
relative-import,
|
no-self-use,
|
||||||
star-args,
|
not-an-iterable,
|
||||||
super-init-not-called,
|
not-callable,
|
||||||
too-few-public-methods,
|
old-style-class,
|
||||||
too-many-ancestors,
|
protected-access,
|
||||||
too-many-arguments,
|
redefined-argument-from-local,
|
||||||
too-many-branches,
|
redefined-builtin,
|
||||||
too-many-instance-attributes,
|
redefined-outer-name,
|
||||||
too-many-lines,
|
relative-import,
|
||||||
too-many-locals,
|
too-few-public-methods,
|
||||||
too-many-public-methods,
|
too-many-ancestors,
|
||||||
too-many-return-statements,
|
too-many-arguments,
|
||||||
too-many-statements,
|
too-many-branches,
|
||||||
wildcard-import,
|
too-many-instance-attributes,
|
||||||
E1102,
|
too-many-lines,
|
||||||
E1103
|
too-many-locals,
|
||||||
|
too-many-public-methods,
|
||||||
|
too-many-return-statements,
|
||||||
|
too-many-statements,
|
||||||
|
unexpected-keyword-arg,
|
||||||
|
ungrouped-imports,
|
||||||
|
unsubscriptable-object,
|
||||||
|
unused-argument,
|
||||||
|
unused-wildcard-import,
|
||||||
|
wildcard-import,
|
||||||
|
wrong-import-order,
|
||||||
|
|
||||||
|
# Rules only enabled in --py3k mode
|
||||||
|
dict-keys-not-iterating,
|
||||||
|
dict-values-not-iterating,
|
||||||
|
eq-without-hash,
|
||||||
|
filter-builtin-not-iterating,
|
||||||
|
map-builtin-not-iterating,
|
||||||
|
no-absolute-import,
|
||||||
|
range-builtin-not-iterating,
|
||||||
|
round-builtin,
|
||||||
|
zip-builtin-not-iterating,
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
reports=no
|
msg-template={path}:{line},{column}: {msg} ({msg_id}: {symbol})
|
||||||
|
output-format=colorized
|
||||||
|
score=n
|
||||||
|
|
Загрузка…
Ссылка в новой задаче