WHAT SCALAFIX COULD DO: // before def someMethod(string: String) { // I like trees println(string.trim.split("/").lastOption) } // after def someMethod(string: String): Unit = println( string .trim .split("/") .lastOption )
WHAT SCALAFIX DOES INSTEAD: // before def someMethod(string: String) { // I like trees println(string.trim.split("/").lastOption) } // after def someMethod(string: String): Unit = { // I like trees println(string.trim.split("/").lastOption) }
SEMANTIC API: MESSAGES object A { 1 + 1 } Messages: [140..145): [warning] a pure expression does nothing in statement position; you may be omitting necessary parentheses
LintMessage / LintCategory A LintMessage is a warning/error that gets displayed to the user. Each LintMessage belongs to LintCategory (e.g. "MissingExplicitType" )