-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[pylint] Re-implement unreachable (PLW0101)
#10891
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
0a20ab6
Revert "Remove `unreachable-code` feature (#9463)"
augustelalande 4a716d6
remove feature gate
augustelalande b615c91
fix up
augustelalande a8023c5
mark preview
augustelalande ddaaee4
Implement post_processing to handle `break` and `continue` in loops w…
augustelalande b8ca509
Always get an after_block to avoid having to get one for each branch …
augustelalande 64dbcc3
Fix #8958
augustelalande 97aa6f0
fix infinite recursion
augustelalande ef0a913
Always close the loop
augustelalande cc3b083
fix handling of asserts in postprocessing
augustelalande 0afcafa
initial implementation of try statement handling
augustelalande cc56b59
clean up docs
augustelalande ede5312
always process finally
augustelalande 439bf09
these were fixed
augustelalande c293600
add cfg tests for try
augustelalande 0b9512a
clippy
augustelalande 91be932
execute blank `except` unconditionally
augustelalande a1e1fbf
process with statements
augustelalande 1d97810
this was fixed
augustelalande 91da715
maybe fall through with statement on error
augustelalande 4978d06
remove `force_next_block` which would change the flow incorrectly
augustelalande 619d710
improve processing of finallys
augustelalande 97d560e
Fix clippy warnings
MichaReiser e8c7ebb
update message
augustelalande 6c450c2
remove bitmap, use a flag on the blocks themselves
augustelalande f7e1e21
clippy
augustelalande acb07bb
add nested for loop tests with break and continue
augustelalande 6536e43
add comments for post_processing
augustelalande d3807aa
highlight all statements in block
augustelalande 2d76c51
fix overflow error, although this exposes another issue; will fix later
augustelalande 64c9233
use BasicBlockKind
augustelalande e212ee3
do not re-use exception blocks for proper handling of finally
augustelalande b066bec
add another test case
augustelalande c96743e
clippy
augustelalande 3f58cac
simplify handling of match statements
augustelalande 902c123
rename conditions
augustelalande 153c3b0
improve documentation
augustelalande be78736
don't assume loop body has any statements
augustelalande 90d0551
format
augustelalande 63efc1c
documentation
augustelalande fa84ffa
clippy
augustelalande 1417363
merge blocks
augustelalande 6a2be73
combine nearby violations into one
augustelalande 70c414c
clippy
augustelalande c207f4c
sort by range start
augustelalande 700b732
clippy
augustelalande 902d641
use ViolationMetadata derive macro
dylwil3 5901292
clippy
dylwil3 9d47451
more aggressive clippy
dylwil3 d13ff6a
move rule to pylint
dylwil3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
improve documentation
- Loading branch information
commit 153c3b0566f2bbc1282ff672421da24d72f7d590
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.