https://fedorahosted.org/freeipa/ticket/5615

Disable unwanted or false positive checks.

New checks cannot be disabled inline because pylint < 1.5 will report them as errors, thus must be disable globally until we decide to move completely to pytlint 1.5 (Fedora 25?)

Patches attached.
From 87ebdf66547467f3bc342c40bf9fa8f32158a9ef Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Wed, 17 Feb 2016 12:57:30 +0100
Subject: [PATCH] Disable new pylint checks

New checks have been introduced in pylint 1.5 and many of them are not
compatible with IPA code or produce false positives.

Disable them all.

Note: due older versions of pylint, new checks cannot be disabled
locally, must be disabled globally.

https://fedorahosted.org/freeipa/ticket/5615
---
 pylintrc | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/pylintrc b/pylintrc
index 2c613bb4ee565ceffabb3a83aac3af176f3fe506..5ada5ea372028e3aa24e38276433cc381f399247 100644
--- a/pylintrc
+++ b/pylintrc
@@ -80,7 +80,22 @@ disable=
     trailing-whitespace,
     duplicate-key,
     unused-format-string-key,
-    deprecated-lambda
+    deprecated-lambda,
+    wrong-import-order,
+    ungrouped-imports,
+    wrong-import-position,
+    unsubscriptable-object,
+    unsupported-membership-test,
+    not-an-iterable,
+    duplicate-except,
+    singleton-comparison,
+    misplaced-comparison-constant,
+    consider-using-enumerate,
+    unneeded-not,
+    not-a-mapping,
+    singleton-comparison,
+    using-constant-test
+
 
 [REPORTS]
 
-- 
2.5.0

From eb750b8787f8e17673f36d387503ddbbe4e176c7 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Wed, 17 Feb 2016 12:57:30 +0100
Subject: [PATCH] Disable new pylint checks

New checks have been introduced in pylint 1.5 and many of them are not
compatible with IPA code or produce false positives.

Disable them all.

Note: due older versions of pylint, new checks cannot be disabled
locally, must be disabled globally.

https://fedorahosted.org/freeipa/ticket/5615
---
 pylintrc | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/pylintrc b/pylintrc
index 01ae889ab0d4a83ed306f2d2e4b514a6a6845036..a8d9211809543cc2c5a34905f87ae2d7b4c3cadf 100644
--- a/pylintrc
+++ b/pylintrc
@@ -80,7 +80,21 @@ disable=
     empty-docstring,
     trailing-whitespace,
     duplicate-key,
-    unused-format-string-key
+    unused-format-string-key,
+    wrong-import-order,
+    ungrouped-imports,
+    wrong-import-position,
+    unsubscriptable-object,
+    unsupported-membership-test,
+    not-an-iterable,
+    duplicate-except,
+    singleton-comparison,
+    misplaced-comparison-constant,
+    consider-using-enumerate,
+    unneeded-not,
+    not-a-mapping,
+    singleton-comparison
+
 
 [REPORTS]
 
-- 
2.5.0

From 57e9005350fc4cee00dbb3511fcfbfcb61934548 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Wed, 17 Feb 2016 12:57:30 +0100
Subject: [PATCH] Disable new pylint checks

New checks have been introduced in pylint 1.5 and many of them are not
compatible with IPA code or produce false positives.

Disable them all.

Note: due older versions of pylint, new checks cannot be disabled
locally, must be disabled globally.

https://fedorahosted.org/freeipa/ticket/5615
---
 pylintrc | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/pylintrc b/pylintrc
index 29db1049c70d4a4e076dd4a72f2ec9bf067c7072..c6f7f457d4b9b8edf6040be2a96380bb9ed526b5 100644
--- a/pylintrc
+++ b/pylintrc
@@ -67,7 +67,20 @@ disable=
     superfluous-parens,
     too-many-lines,
     unidiomatic-typecheck,
-    no-absolute-import
+    no-absolute-import,
+    wrong-import-order,
+    ungrouped-imports,
+    wrong-import-position,
+    unsubscriptable-object,
+    unsupported-membership-test,
+    not-an-iterable,
+    duplicate-except,
+    singleton-comparison,
+    misplaced-comparison-constant,
+    consider-using-enumerate,
+    unneeded-not,
+    not-a-mapping,
+    singleton-comparison
 
 
 [REPORTS]
-- 
2.5.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to