[blivet:master 18/25] Suppress W0612 (unused-variable) false positives
mulhern
amulhern at redhat.com
Wed Apr 16 21:54:39 UTC 2014
These are all used, somehow the fact that the names are imported instead of
assigned to confuses the analysis.
Signed-off-by: mulhern <amulhern at redhat.com>
---
tests/pylint/pylint-false-positives | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/pylint/pylint-false-positives b/tests/pylint/pylint-false-positives
index 02e496b..05adbd7 100644
--- a/tests/pylint/pylint-false-positives
+++ b/tests/pylint/pylint-false-positives
@@ -9,6 +9,13 @@
^blivet/__init__.py:[[:digit:]]+: \[W0602\(global\-variable\-not\-assigned\), enable_installer_mode\] Using global for 'productName' but no assignment is done$
^blivet/__init__.py:[[:digit:]]+: \[W0602\(global\-variable\-not\-assigned\), enable_installer_mode\] Using global for 'ROOT_PATH' but no assignment is done$
^blivet/__init__.py:[[:digit:]]+: \[W0602\(global\-variable\-not\-assigned\), enable_installer_mode\] Using global for 'shortProductName' but no assignment is done$
+^blivet/__init__.py:[[:digit:]]+: \[W0612\(unused\-variable\), enable_installer_mode\] Unused variable 'errorHandler'$
+^blivet/__init__.py:[[:digit:]]+: \[W0612\(unused\-variable\), enable_installer_mode\] Unused variable 'ERROR_RAISE'$
+^blivet/__init__.py:[[:digit:]]+: \[W0612\(unused\-variable\), enable_installer_mode\] Unused variable 'get_bootloader'$
+^blivet/__init__.py:[[:digit:]]+: \[W0612\(unused\-variable\), enable_installer_mode\] Unused variable 'isys'$
+^blivet/__init__.py:[[:digit:]]+: \[W0612\(unused\-variable\), enable_installer_mode\] Unused variable 'productName'$
+^blivet/__init__.py:[[:digit:]]+: \[W0612\(unused\-variable\), enable_installer_mode\] Unused variable 'ROOT_PATH'$
+^blivet/__init__.py:[[:digit:]]+: \[W0612\(unused\-variable\), enable_installer_mode\] Unused variable 'shortProductName'$
^blivet/formats/__init__.py:[[:digit:]]+: \[W0201\(attribute\-defined\-outside\-init\), DeviceFormat._setDevice\] Attribute '_device' defined outside __init__$
^tests/devicelibs_test/raid_test.py:[[:digit:]]+: \[E1120\(no\-value\-for\-parameter\), [[:alnum:]\.]+\] No value passed for parameter 'member_count' in function call$
^tests/devicelibs_test/raid_test.py:[[:digit:]]+: \[E1120\(no\-value\-for\-parameter\), [[:alnum:]\.]+\] No value passed for parameter 'smallest_member_size' in function call$
--
1.8.3.1
More information about the anaconda-patches
mailing list