summaryrefslogtreecommitdiffstats
path: root/make-lint
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-12-16 16:06:03 +0100
committerJan Cholasta <jcholast@redhat.com>2015-12-23 07:59:22 +0100
commite4075b1fe26a608cd1f3778ee1f655a5f5700c65 (patch)
tree11529085e2b884007068a14ea1fa3ed33d62103c /make-lint
parent774d0eaa8eb940ea9c42c4ef12eb80e509fd9c3b (diff)
downloadfreeipa-e4075b1fe26a608cd1f3778ee1f655a5f5700c65.tar.gz
freeipa-e4075b1fe26a608cd1f3778ee1f655a5f5700c65.tar.xz
freeipa-e4075b1fe26a608cd1f3778ee1f655a5f5700c65.zip
Remove unused imports
This patch removes unused imports, alse pylint has been configured to check unused imports. Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'make-lint')
-rwxr-xr-xmake-lint7
1 files changed, 5 insertions, 2 deletions
diff --git a/make-lint b/make-lint
index 2cffe0938..04e985d52 100755
--- a/make-lint
+++ b/make-lint
@@ -239,8 +239,11 @@ def main():
linter.register_checker(IPATypeChecker(linter))
if options.errors_only:
- linter.disable_noerror_messages()
- linter.enable('F')
+ linter.set_option('disable', 'all')
+ linter.set_option('enable', 'F')
+ linter.set_option('enable', 'E')
+ linter.set_option('enable', 'unused-import')
+
linter.set_reporter(TextReporter())
linter.set_option('msg-template',
'{path}:{line}: [{msg_id}({symbol}), {obj}] {msg})')