This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
v7.9.0
Updated Scalastyle to v1.1.0, which brings the following changes:
New Scalastyle rules (#342 - @mwz):
- New
ForLoopChecker
rule - omit braces if you have ayield
clause, otherwise, surround the contents with curly-braces, even if the contents are only a single line. - New
WhileBraceChecker
rule - it's recommended to never omit braces when usingwhile
. - New
CaseBraceChecker
rule - braces aren't required incase
clauses.
Scalastyle rule changes:
HeaderMatchesChecker
has a new parameterregex
to indicate whether to treat the header string as a regular expression; defaults tofalse
.MethodLengthChecker
has a new parameterignoreEmpty
to exclude empty lines from being counted; defaults tofalse
.ForBraceChecker
has a new parametersingleLineAllowed
to indicate whether a one-linefor
expressions with parentheses are allowed; defaults tofalse
.NonASCIICharacterChecker
has a new parameterallowStringLiterals
to indicate whether non-ASCII scripts in string literals should be allowed; defaults tofalse
.
All of the above rules are activated with the default parameter values in the Scalastyle
, Scalastyle+Scapegoat
and the Recommended by sonar-scala
quality profiles.
The plugin is available for download from Bintray.