-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Give preference to --never-returning-functions
in inconsistent-return-statements
check
#9591
Give preference to --never-returning-functions
in inconsistent-return-statements
check
#9591
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey thank you for taking over @antoniogamizbadger ! I feel like we lack some functional tests. (Shouldn't there be a Never
used somewhere ?) That could be taken from the example in the original issue directly. Also the tests are not passing in the CI right now. When a message is expected in functional tests it's indicated with # [message-name]
styile comment.
@antoniogamizbadger Would you like to continue working on this? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@antoniogamizbadger Thanks for the contribution! |
This is covered by the call to |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9591 +/- ##
==========================================
- Coverage 95.80% 95.78% -0.02%
==========================================
Files 174 174
Lines 18885 18880 -5
==========================================
- Hits 18092 18085 -7
- Misses 793 795 +2
|
--never-returning-functions
in inconsistent-return-statements
check
Coverage decrease is from moving existing uncovered lines around. |
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉 This comment was generated for commit 95b6e8b |
This fixes 2 bugs in the computation:
Never is handled in addition to NoReturn.
Give priority to the explicit --never-returning-functions option.
This PR was copied from #9535 (I cannot add commits there and we really need this).
Type of Changes
Description
Closes #7565