Skip to content

Add fixer for return-never-call #160

@ajafff

Description

@ajafff

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions