Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: third_party/pylint/interfaces.py

Issue 753543006: pylint: upgrade to 1.4.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pylint/gui.py ('k') | third_party/pylint/lint.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/pylint/gui.py ('k') | third_party/pylint/lint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698