You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement an autofixer for return-never-call (#159).
It should only add throw or return if there are no executable statements after the failing statement. That's necessary to avoid breaking people's build by making code unreachable. To be fair the code is already unreachable but not detected by the compiler.
This needs some control flow analysis to track if any statement is executed after the current one.
The text was updated successfully, but these errors were encountered:
Implement an autofixer for
return-never-call
(#159).It should only add
throw
orreturn
if there are no executable statements after the failing statement. That's necessary to avoid breaking people's build by making code unreachable. To be fair the code is already unreachable but not detected by the compiler.This needs some control flow analysis to track if any statement is executed after the current one.
The text was updated successfully, but these errors were encountered: