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
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.
The text was updated successfully, but these errors were encountered:
saeltz
changed the title
Support Actionable Diagnostics from 2.13.12+
Support Actionable Diagnostics from Scala 2.13.12+
Sep 18, 2023
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 rewritex to n-1
tox 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.
The text was updated successfully, but these errors were encountered: