diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-01-26 11:04:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 17:04:51 +0100 |
commit | 44ad84a4332dfb89e810106fef2616a0bc7e47e4 (patch) | |
tree | 38f995fc9dfc2a0b3bf0a88379180964d3daf69c /pylint/interfaces.py | |
parent | fa2b6ceca796311a918e28770d101b53a43f84f3 (diff) | |
download | pylint-git-44ad84a4332dfb89e810106fef2616a0bc7e47e4.tar.gz |
Add confidence level `CONTROL_FLOW` (#5709)
Diffstat (limited to 'pylint/interfaces.py')
-rw-r--r-- | pylint/interfaces.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pylint/interfaces.py b/pylint/interfaces.py index 7670ad19a..103eb207b 100644 --- a/pylint/interfaces.py +++ b/pylint/interfaces.py @@ -34,6 +34,7 @@ __all__ = ( "IReporter", "IChecker", "HIGH", + "CONTROL_FLOW", "INFERENCE", "INFERENCE_FAILURE", "UNDEFINED", @@ -43,13 +44,16 @@ __all__ = ( Confidence = namedtuple("Confidence", ["name", "description"]) # Warning Certainties HIGH = Confidence("HIGH", "Warning that is not based on inference result.") +CONTROL_FLOW = Confidence( + "CONTROL_FLOW", "Warning based on assumptions about control flow." +) 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] +CONFIDENCE_LEVELS = [HIGH, CONTROL_FLOW, INFERENCE, INFERENCE_FAILURE, UNDEFINED] class Interface: |