On 01/09/2013 12:30 AM, Vadim Bendebury wrote:
By default the pylint module seems to be picking up the user's
~/.pylintrc file, which could be configured to something very
different from autotest standards.
This change makes sure no local rc file is used.
With a conflicting ~/.pylintrc present, before this change executing
utils/run_pylint on any autotest Python source file was causing tons
of errors, with the change the false positives are gone.
Now we're talking! Looks good, applied:
https://github.com/autotest/autotest/commit/a778ad8b75ce02cd8a743d1ea8452ab8741dd099
Thanks!
Lucas
Signed-off-by: Vadim Bendebury <[email protected]>
---
utils/run_pylint.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/utils/run_pylint.py b/utils/run_pylint.py
index 9d5ae84..bec6e7a 100755
--- a/utils/run_pylint.py
+++ b/utils/run_pylint.py
@@ -83,8 +83,7 @@ def get_pylint_opts():
else:
opts = disable_old
- opts += ['--reports=no', '--include-ids=y']
- return opts
+ return opts + ['--reports=no', '--include-ids=y', '--rcfile=/dev/null']
def check_file(file_path):
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel