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