pylint: Enable useless-suppression

https://pylint.pycqa.org/en/latest/user_guide/message-control.html#detecting-useless-disables:

> As pylint gets better and false positives are removed, disables that
  became useless can accumulate and clutter the code. In order to clean
  them you can enable the useless-suppression warning.

This doesn't enforce useless-suppression warnings as errors. The idea is
cleanup of these warings on every Pylint's bump.

Fixes: https://pagure.io/freeipa/issue/9117
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Stanislav Levin 2021-07-30 12:12:36 +03:00 committed by Rob Crittenden
parent df3c40fd34
commit 57ee7d38e9

View File

@ -28,10 +28,18 @@ valid-metaclass-classmethod-first-arg=cls
enable= enable=
all, all,
python3 python3,
useless-suppression,
disable= disable=
I, bad-inline-option,
c-extension-no-member,
deprecated-pragma,
file-ignored,
locally-disabled,
raw-checker-failed,
suppressed-message,
use-symbolic-message-instead,
duplicate-code, duplicate-code,
interface-not-implemented, interface-not-implemented,
no-self-use, no-self-use,