summaryrefslogtreecommitdiffstats
path: root/pylintrc
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-26 18:24:39 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-27 13:35:58 +0200
commit45e3aee35219c89c07d590003a334f8db658a3b2 (patch)
treecb535e7f725f31d0bc6b5faf405b08fac05a3e96 /pylintrc
parent9d83be3647547cfca4e129cfeb63771213232cf7 (diff)
downloadfreeipa-45e3aee35219c89c07d590003a334f8db658a3b2.tar.gz
freeipa-45e3aee35219c89c07d590003a334f8db658a3b2.tar.xz
freeipa-45e3aee35219c89c07d590003a334f8db658a3b2.zip
Pylint: enable check for unused-variables
Unused variables may: * make code less readable * create dead code * potentialy hide issues/errors Enabled check should prevent to leave unused variable in code Check is locally disabled for modules that fix is not clear or easy or have too many occurences of unused variables Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/pylintrc b/pylintrc
index 5f867bdc1..8643f8d87 100644
--- a/pylintrc
+++ b/pylintrc
@@ -55,7 +55,6 @@ disable=
undefined-loop-variable,
unnecessary-lambda,
unused-argument,
- unused-variable,
useless-else-on-loop,
bad-continuation,
bad-whitespace,
@@ -93,3 +92,7 @@ reports=no
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details
msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg})'
+
+
+[VARIABLES]
+dummy-variables-rgx=_.+