commit: 36a01e9729cb7c54ce0c0c91095cf0b01c70f656
Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
AuthorDate: Thu Mar 26 16:55:52 2020 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Mar 26 17:09:02 2020 +0000
URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=36a01e97
pylintrc: enable more warnings
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
.pylintrc | 27 +++++++++++++++++++++++++++
lddtree.py | 2 +-
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/.pylintrc b/.pylintrc
index b58abfa..cf1379d 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -1,3 +1,16 @@
+[MASTER]
+# List of plugins (as comma separated values of python modules names) to load,
+# usually to register additional checkers.
+load-plugins=
+ pylint.extensions.bad_builtin,
+ pylint.extensions.check_elif,
+ pylint.extensions.docstyle,
+ pylint.extensions.emptystring,
+ pylint.extensions.overlapping_exceptions,
+ pylint.extensions.redefined_variable_type,
+
+jobs=0
+
[MESSAGES CONTROL]
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifier separated by comma (,) or put this option
@@ -19,11 +32,20 @@ disable=
[REPORTS]
reports=no
+score=no
[FORMAT]
max-line-length=80
indent-string=' '
+[BASIC]
+bad-functions=
+ exit,
+ filter,
+ input,
+ map,
+ quit,
+
[SIMILARITIES]
min-similarity-lines=20
@@ -32,3 +54,8 @@ dummy-variables-rgx=_
[DESIGN]
max-parents=10
+
+[IMPORTS]
+deprecated-modules=
+ mox,
+ optparse,
diff --git a/lddtree.py b/lddtree.py
index 240418e..f453d13 100755
--- a/lddtree.py
+++ b/lddtree.py
@@ -195,7 +195,7 @@ def ParseLdPaths(str_ldpaths, root='', path=None):
"""
ldpaths = []
for ldpath in str_ldpaths.split(':'):
- if ldpath == '':
+ if not ldpath:
# The ldso treats "" paths as $PWD.
ldpath = os.getcwd()
elif '$ORIGIN' in ldpath: