dwango/scalastyle — pull request #7 by suikwasha (2013-08-16 02:22:24+00:00)
Title: SimpleExprWithBraceChecker

This checker detects the brace contains a simple expression.

Effective Scala suggests "Braces are used to create compound expressions, where the value of the compound expression is the last expression in the list. Avoid using braces for simple expressions"

A simple expression is a single expression in this checker, like only

println("hello")

For example.
the checker allows

def foo() = println("hello")

but, does not allow

def foo() = {
println("hello")
}

by default, the checker checks nothing.
we have to specify target using "TargetToken" parameter in config file.
available tokens are "def,val,var,if,for,while,do,case"