Skip to content

Commit

Permalink
Add no double line breaks checkstyle rule (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
amerguy authored and Robert Fink committed Mar 29, 2018
1 parent d5cddee commit 17b906f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs/java-style-guide/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,7 @@ A single blank line appears:
- As required by other sections of this document (such as
Section Import statements).

Two consecutive blank lines are permitted, but never required (or
encouraged). More than two consecutive blank lines are discouraged.
Two consecutive blank lines are not permitted.

#### Horizontal whitespace

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
<property name="format" value="\s+$"/>
<property name="message" value="Whitespace at end-of-line"/>
</module>
<module name="RegexpMultiline"> <!-- Java Style Guide: Vertical Whitespace -->
<property name="fileExtensions" value="java"/>
<property name="format" value="^\n\n$"/>
<property name="message" value="Two consecutive blank lines are not permitted."/>
</module>
<module name="SuppressionFilter"> <!-- baseline-gradle: README.md -->
<property name="file" value="${config_loc}/checkstyle-suppressions.xml"/>
</module>
Expand Down

0 comments on commit 17b906f

Please sign in to comment.