Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add confidence level CONTROL_FLOW #5709

Merged

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
✨ New feature

Description

Add a new confidence level CONTROL_FLOW for messages emitted that depend on assumptions about control flow execution. Discussed at #5684 (comment).

@coveralls
Copy link

coveralls commented Jan 23, 2022

Pull Request Test Coverage Report for Build 1751055192

  • 9 of 9 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 93.846%

Totals Coverage Status
Change from base Build 1751019187: 0.002%
Covered Lines: 14716
Relevant Lines: 15681

💛 - Coveralls

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thank you !

The multiple place to modify to add a value makes me want to refactor Confidence to be an Enum instead because namedtuple are slow to import (as it's an exec). But this would make a breaking change and adding a confidence value will not happen that often if we're being honest. But maybe we need to do this breaking change before using confidence more, what do you think @DanielNoord ?

pylint/checkers/variables.py Outdated Show resolved Hide resolved
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.13.0 milestone Jan 24, 2022
@Pierre-Sassoulas Pierre-Sassoulas added Enhancement ✨ Improvement to a component Maintenance Discussion or action around maintaining pylint or the dev workflow labels Jan 24, 2022
@Pierre-Sassoulas
Copy link
Member

I fixed the conflict and merged main but I think this could be squashed then rebased for clarity.

@jacobtylerwalls jacobtylerwalls force-pushed the control-flow-confidence branch from 2e66f1d to bfff04e Compare January 26, 2022 13:31
@jacobtylerwalls jacobtylerwalls force-pushed the control-flow-confidence branch from bfff04e to 0f541d4 Compare January 26, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants