-
Notifications
You must be signed in to change notification settings - Fork 186
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
More robust unreachable_code_linter
#2129
More robust unreachable_code_linter
#2129
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2129 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 121 121
Lines 5232 5232
=======================================
Hits 5214 5214
Misses 18 18
|
unreachable_code_linter
Great find & thanks for fixing! Only the small change please. |
@MEO265 FYI we reserve the "bugs" section if the NEWS for things like "running the linter threw an unexpected error or warning". tightened logic (reduced false positives or false negatives) goes under "new/improved". |
(re-reading both items currently there don't belong either! sorry) |
Fixes #2127
In my opinion, statement
(position() != last() - 1 or not(following-sibling::OP-RIGHT-BRACE))
is not necessary (At least with the new addition) and made no difference to the tests. If I miss something, let me know.