Module: check_mk
Branch: master
Commit: 4c229a0358a13365a437823d25f9317c1e61dc29
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4c229a0358a133…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Jul 13 14:18:21 2018 +0200
Comment unused-variable warning.
Change-Id: Iadf897224e8c1a39d454cd8c382d9ad0ac8218f2
---
tests/pylint/pylintrc | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index a03cda2..efbed2e 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -70,16 +70,20 @@ disable=
unsupported-membership-test,
unused-argument,
unused-import,
- unused-variable,
unused-wildcard-import,
wildcard-import,
wrong-import-order,
wrong-import-position,
#---------------------------------------------------------------------------
- # We should really enable this, but some work is needed to sprinkle abc
- # annotations through our code and fix a few obscure places.
+ # We should really enable this, there could be some real exceptions waiting
+ # to be thrown. But some work is needed first to sprinkle abc annotations
+ # through our code and fix a few obscure places.
abstract-method,
#---------------------------------------------------------------------------
+ # We should really enable this, there could be some typos hiding which are
+ # real bugs. Just some work to do...
+ unused-variable,
+ #---------------------------------------------------------------------------
# Enabling the two spelling-related checks increases pylints runtime from
# 11 min to 40 min, so we better keep those disabled for normal runs.
# wrong-spelling-in-comment,
Module: check_mk
Branch: master
Commit: eef6fd37a9aa619d7b1238e828c60000f816980a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eef6fd37a9aa61…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Jul 13 12:41:34 2018 +0200
Fixed and enabled unnecessary-pass warnings.
Change-Id: Ic16f74baf8fa7706af0332df7e353f814046e000
---
cmk/gui/plugins/metrics/utils.py | 1 -
tests/pylint/pylintrc | 5 ++---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/cmk/gui/plugins/metrics/utils.py b/cmk/gui/plugins/metrics/utils.py
index 98b58a4..4981ed9 100644
--- a/cmk/gui/plugins/metrics/utils.py
+++ b/cmk/gui/plugins/metrics/utils.py
@@ -281,7 +281,6 @@ def translate_metrics(perf_data, check_command):
except:
if config.debug:
raise
- pass # empty or invalid number
new_entry.update(mi)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 89afb96..7100c29 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -77,9 +77,8 @@ disable=
wrong-import-order,
wrong-import-position,
#---------------------------------------------------------------------------
- # The 2 warnings below have already been fixed for non-web/ code. When the
- # upcoming reorganization of web/ has been landed, these should be fixed first.
- unnecessary-pass,
+ # The warning below has already been fixed for non-web/ code. When the
+ # upcoming reorganization of web/ has been landed, this should be fixed first.
useless-super-delegation,
#---------------------------------------------------------------------------
# Enabling the two spelling-related checks increases pylints runtime from