-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
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.
mkuthan
Metadata
Metadata
Assignees
Labels
No labels