Skip to content

Configurable extra runsBefore and runsAfter phases #163

Closed
@pbatko

Description

@pbatko

Currently scalac-scoverage-plugin runs after typer and before patmat phases. There are no other phases in between so the order is unique and fixed.

Situation changes when using other scalac plugins which add phases in between typer and patmat. Scoverage phase can be then nondeterministically inserted somewhere between these new phases.

To fine-tune phases ordering I propose adding following flags

-P:scoverage:extraAfterPhase:<phaseName>
-P:scoverage:extraBeforePhase:<phaseName>

which would specify what other phases beside typer and patmat need to taken into account when determining phase ordering by appending them to runsAfter and runsBefore lists.

PR: #164

What's your comments? Can we have these flags added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions