Skip to content

Support Actionable Diagnostics from Scala 2.13.12+ #793

@saeltz

Description

@saeltz

Scala 2.13.12 added actionable diagnostics to the compiler and and info/warning/error messages.
We needed to change our tests in #789 to accommodate that change.
In future versions of Scapegoat, we could also support the actionable diagnostics in a way that we suggest a fix for rules where it makes sense.
An example: AvoidToMinusOne inspection would automatically suggest to rewrite x to n-1 to x until n.

Discuss: This would not work for older Scala versions. So we either only support Scapegoat for newer Scala versions or somehow create an internal intermediate model that maps to the Scala version's info message.

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