Skip to content

Commit 0e6821f

Browse files
committed
Adapt checkstyle.xml
1 parent e59f845 commit 0e6821f

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,20 @@
107107

108108
<module name="NeedBraces"/>
109109

110+
<!-- not working, therefore disabled
110111
<module name="EmptyBlock">
111112
<property name="option" value="text"/>
112113
</module>
114+
-->
113115

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

117119
<!--
118-
following rule enforces that there are no one line statements such as
119-
120-
public String getTabName() { return Localization.lang("XMP metadata"); }
121-
122-
-->
120+
following are enforced by the formatter
123121
<module name="LeftCurly"/>
124-
125122
<module name="RightCurly"/>
123+
-->
126124

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

config/checkstyle/checkstyle_reviewdog.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,20 @@
107107

108108
<module name="NeedBraces"/>
109109

110+
<!-- not working, therefore disabled
110111
<module name="EmptyBlock">
111112
<property name="option" value="text"/>
112113
</module>
114+
-->
113115

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

117119
<!--
118-
following rule enforces that there are no one line statements such as
119-
120-
public String getTabName() { return Localization.lang("XMP metadata"); }
121-
122-
-->
120+
following are enforced by the formatter
123121
<module name="LeftCurly"/>
124-
125122
<module name="RightCurly"/>
123+
-->
126124

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

0 commit comments

Comments
 (0)