Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

v7.9.0

Compare
Choose a tag to compare
Loading
@mwz mwz released this 11 Jan 17:51
· 250 commits to master since this release

Updated Scalastyle to v1.1.0, which brings the following changes:

New Scalastyle rules (#342 - @mwz):

  • New ForLoopChecker rule - omit braces if you have a yield 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 using while.
  • New CaseBraceChecker rule - braces aren't required in case clauses.

Scalastyle rule changes:

  • HeaderMatchesChecker has a new parameter regex to indicate whether to treat the header string as a regular expression; defaults to false.
  • MethodLengthChecker has a new parameter ignoreEmpty to exclude empty lines from being counted; defaults to false.
  • ForBraceChecker has a new parameter singleLineAllowed to indicate whether a one-line for expressions with parentheses are allowed; defaults to false.
  • NonASCIICharacterChecker has a new parameter allowStringLiterals to indicate whether non-ASCII scripts in string literals should be allowed; defaults to false.

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.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.