Skip to content

Scalastyle proposed rules (Size Violations)

matthewfarwell edited this page Oct 16, 2012 · 9 revisions

This page contains proposed rules for Scalastyle, category Size Violations.

Size Violations

ExecutableStatementCount

Restricts the number of executable statements to a specified limit.

AnonInnerLength

Checks for long anonymous inner classes. Rationale: If an anonymous inner class becomes very long it is hard to understand and to see the flow of the method where the class is defined. Therefore long anonymous inner classes should usually be refactored into a named inner class.