Skip to content
Snippets Groups Projects
Commit 22bd441d authored by Moul's avatar Moul
Browse files

[lint] Add following rules to .pylintrc:

--disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613

--enable=C0121,C0202,C0321 --jobs=0
parent 42b4961c
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ ignore-patterns= ...@@ -19,7 +19,7 @@ ignore-patterns=
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use. # number of processors available to use.
jobs=1 jobs=0
# Control the amount of potential inferred values when inferring a single # Control the amount of potential inferred values when inferring a single
# object. This can help the performance when dealing with large functions or # object. This can help the performance when dealing with large functions or
...@@ -60,7 +60,41 @@ confidence= ...@@ -60,7 +60,41 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have # --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes # no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W". # --disable=W".
disable=print-statement, disable=blacklisted-name,
invalid-name,
empty-docstring,
unneeded-not,
missing-module-docstring,
missing-class-docstring,
missing-function-docstring,
misplaced-comparison-constant,
unidiomatic-typecheck,
consider-using-enumerate,
consider-iterating-dictionary,
bad-mcs-method-argument,
bad-mcs-classmethod-argument,
single-string-used-for-slots,
line-too-long,
too-many-lines,
trailing-whitespace,
missing-final-newline,
trailing-newlines,
superfluous-parens,
bad-whitespace,
mixed-line-endings,
unexpected-line-ending-format,
bad-continuation,
wrong-spelling-in-comment,
wrong-spelling-in-docstring,
invalid-characters-in-docstring,
multiple-imports,
wrong-import-order,
ungrouped-imports,
wrong-import-position,
useless-import-alias,
import-outside-toplevel,
len-as-condition,
print-statement,
parameter-unpacking, parameter-unpacking,
unpacking-in-except, unpacking-in-except,
old-raise-syntax, old-raise-syntax,
...@@ -78,6 +112,14 @@ disable=print-statement, ...@@ -78,6 +112,14 @@ disable=print-statement,
useless-suppression, useless-suppression,
deprecated-pragma, deprecated-pragma,
use-symbolic-message-instead, use-symbolic-message-instead,
too-many-instance-attributes,
too-few-public-methods,
too-many-public-methods,
too-many-branches,
too-many-arguments,
too-many-locals,
too-many-statements,
unused-argument,
apply-builtin, apply-builtin,
basestring-builtin, basestring-builtin,
buffer-builtin, buffer-builtin,
...@@ -144,7 +186,10 @@ disable=print-statement, ...@@ -144,7 +186,10 @@ disable=print-statement,
# either give multiple identifier separated by comma (,) or put this option # either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where # multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples. # it should appear only once). See also the "--disable" option for examples.
enable=c-extension-no-member enable=singleton-comparison,
bad-classmethod-argument,
multiple-statements,
c-extension-no-member
[REPORTS] [REPORTS]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment