Index: third_party/pylint/interfaces.py |
diff --git a/third_party/pylint/interfaces.py b/third_party/pylint/interfaces.py |
index 50f2c8391041a83d784829c7d9e0a1326a7e67a2..067aaa6f02d019dcfbdaec942e420976c6d97610 100644 |
--- a/third_party/pylint/interfaces.py |
+++ b/third_party/pylint/interfaces.py |
@@ -10,10 +10,22 @@ |
# You should have received a copy of the GNU General Public License along with |
# this program; if not, write to the Free Software Foundation, Inc., |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
-"""Interfaces for PyLint objects""" |
+"""Interfaces for Pylint objects""" |
+from collections import namedtuple |
from logilab.common.interface import Interface |
+Confidence = namedtuple('Confidence', ['name', 'description']) |
+# Warning Certainties |
+HIGH = Confidence('HIGH', 'No false positive possible.') |
+INFERENCE = Confidence('INFERENCE', 'Warning based on inference result.') |
+INFERENCE_FAILURE = Confidence('INFERENCE_FAILURE', |
+ 'Warning based on inference with failures.') |
+UNDEFINED = Confidence('UNDEFINED', |
+ 'Warning without any associated confidence level.') |
+ |
+CONFIDENCE_LEVELS = [HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED] |
+ |
class IChecker(Interface): |
"""This is an base interface, not designed to be used elsewhere than for |