Skip to content

Commit

Permalink
Adapt checkstyle.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Oct 5, 2024
1 parent e59f845 commit 0e6821f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,20 @@

<module name="NeedBraces"/>

<!-- not working, therefore disabled
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
-->

<!-- Disallows empty catch blocks (not even having a comment): https://checkstyle.sourceforge.io/config_blocks.html#EmptyCatchBlock -->
<module name="EmptyCatchBlock"/>

<!--
following rule enforces that there are no one line statements such as
public String getTabName() { return Localization.lang("XMP metadata"); }
-->
following are enforced by the formatter
<module name="LeftCurly"/>

<module name="RightCurly"/>
-->

<!-- coding - https://checkstyle.sourceforge.io/config_coding.html -->

Expand Down
10 changes: 4 additions & 6 deletions config/checkstyle/checkstyle_reviewdog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,20 @@

<module name="NeedBraces"/>

<!-- not working, therefore disabled
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
-->

<!-- Disallows empty catch blocks (not even having a comment): https://checkstyle.sourceforge.io/config_blocks.html#EmptyCatchBlock -->
<module name="EmptyCatchBlock"/>

<!--
following rule enforces that there are no one line statements such as
public String getTabName() { return Localization.lang("XMP metadata"); }
-->
following are enforced by the formatter
<module name="LeftCurly"/>

<module name="RightCurly"/>
-->

<!-- coding - https://checkstyle.sourceforge.io/config_coding.html -->

Expand Down

0 comments on commit 0e6821f

Please sign in to comment.