com.sksamuel.scapegoat.Levels
Infos are used for code which is semantically fine, but there exists a more idomatic way of writing it.
An example would be using an if statement to return true or false as the last statement in a block. Eg,
def foo = { if (a) true else false }
Can be re-written as
def foo = a
Infos are used for code which is semantically fine, but there exists a more idomatic way of writing it.
An example would be using an if statement to return true or false as the last statement in a block. Eg,
def foo = { if (a) true else false }
Can be re-written as
def foo = a