Skip to content

Commit

Permalink
Fix empty-lines regexp to match Windows line endings as well.
Browse files Browse the repository at this point in the history
uhafner committed Apr 19, 2024
1 parent 979faa3 commit 72ea8fe
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions etc/checkstyle-java-configuration.xml
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@
<module name="Checker">
<property name="severity" value="warning"/>
<module name="RegexpMultiline">
<property name="format" value="\{\s*\R\s*\R"/>
<property name="format" value="\{\s*(\n|\r\n)\s*(\n|\r\n)"/>
<property name="message" value="No empty lines after opening curly braces allowed" />
</module>
<module name="RegexpMultiline">
<property name="format" value="\R\s*\R\s*\}"/>
<property name="format" value="(\n|\r\n)\s*(\n|\r\n)\s*\}"/>
<property name="message" value="No empty lines before closing curly braces allowed" />
</module>
<module name="TreeWalker">
4 changes: 2 additions & 2 deletions etc/checkstyle-tests-configuration.xml
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@
<module name="Checker">
<property name="severity" value="warning"/>
<module name="RegexpMultiline">
<property name="format" value="\{\s*\R\s*\R"/>
<property name="format" value="\{\s*(\n|\r\n)\s*(\n|\r\n)"/>
<property name="message" value="No empty lines after opening curly braces allowed" />
</module>
<module name="RegexpMultiline">
<property name="format" value="\R\s*\R\s*\}"/>
<property name="format" value="(\n|\r\n)\s*(\n|\r\n)\s*\}"/>
<property name="message" value="No empty lines before closing curly braces allowed" />
</module>
<module name="TreeWalker">

0 comments on commit 72ea8fe

Please sign in to comment.