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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « third_party/pylint/gui.py ('k') | third_party/pylint/lint.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This program is free software; you can redistribute it and/or modify it under 1 # This program is free software; you can redistribute it and/or modify it under
2 # the terms of the GNU General Public License as published by the Free Software 2 # the terms of the GNU General Public License as published by the Free Software
3 # Foundation; either version 2 of the License, or (at your option) any later 3 # Foundation; either version 2 of the License, or (at your option) any later
4 # version. 4 # version.
5 # 5 #
6 # This program is distributed in the hope that it will be useful, but WITHOUT 6 # This program is distributed in the hope that it will be useful, but WITHOUT
7 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 7 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details 8 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
9 # 9 #
10 # You should have received a copy of the GNU General Public License along with 10 # You should have received a copy of the GNU General Public License along with
11 # this program; if not, write to the Free Software Foundation, Inc., 11 # this program; if not, write to the Free Software Foundation, Inc.,
12 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13 """Interfaces for PyLint objects""" 13 """Interfaces for Pylint objects"""
14 from collections import namedtuple
14 15
15 from logilab.common.interface import Interface 16 from logilab.common.interface import Interface
16 17
18 Confidence = namedtuple('Confidence', ['name', 'description'])
19 # Warning Certainties
20 HIGH = Confidence('HIGH', 'No false positive possible.')
21 INFERENCE = Confidence('INFERENCE', 'Warning based on inference result.')
22 INFERENCE_FAILURE = Confidence('INFERENCE_FAILURE',
23 'Warning based on inference with failures.')
24 UNDEFINED = Confidence('UNDEFINED',
25 'Warning without any associated confidence level.')
26
27 CONFIDENCE_LEVELS = [HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED]
28
17 29
18 class IChecker(Interface): 30 class IChecker(Interface):
19 """This is an base interface, not designed to be used elsewhere than for 31 """This is an base interface, not designed to be used elsewhere than for
20 sub interfaces definition. 32 sub interfaces definition.
21 """ 33 """
22 34
23 def open(self): 35 def open(self):
24 """called before visiting project (i.e set of modules)""" 36 """called before visiting project (i.e set of modules)"""
25 37
26 def close(self): 38 def close(self):
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 location is a 3-uple (module, object, line) 75 location is a 3-uple (module, object, line)
64 msg is the actual message 76 msg is the actual message
65 """ 77 """
66 78
67 def display_results(self, layout): 79 def display_results(self, layout):
68 """display results encapsulated in the layout tree 80 """display results encapsulated in the layout tree
69 """ 81 """
70 82
71 83
72 __all__ = ('IRawChecker', 'IAstroidChecker', 'ITokenChecker', 'IReporter') 84 __all__ = ('IRawChecker', 'IAstroidChecker', 'ITokenChecker', 'IReporter')
OLDNEW
« 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