| Index: third_party/pylint/interfaces.py
|
| ===================================================================
|
| --- third_party/pylint/interfaces.py (revision 293207)
|
| +++ third_party/pylint/interfaces.py (working copy)
|
| @@ -10,11 +10,23 @@
|
| # 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
|
| sub interfaces definition.
|
|
|