Skip to content

Commit 7c1612d

Browse files
committed
Relax return-count check
Increased the number of allowed return statements to three. Restricting the number of return statements to two resulted in code that was less easier to read than code with more return statements.
1 parent 34cffed commit 7c1612d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

quality_assurance/checkstyle_rules.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
This configuration file was written by the eclipse-cs plugin configuration editor
66
-->
77
<!--
8-
Checkstyle-Configuration: Metafacture
8+
Checkstyle-Configuration: Culturegraph
99
Description: none
1010
-->
1111
<module name="Checker">
@@ -77,7 +77,9 @@
7777
<module name="RedundantThrows">
7878
<property name="suppressLoadErrors" value="true"/>
7979
</module>
80-
<module name="ReturnCount"/>
80+
<module name="ReturnCount">
81+
<property name="max" value="3"/>
82+
</module>
8183
<module name="SimplifyBooleanExpression"/>
8284
<module name="SimplifyBooleanReturn"/>
8385
<module name="StringLiteralEquality"/>
@@ -112,7 +114,7 @@
112114
<module name="JavadocType"/>
113115
</module>
114116
<module name="StrictDuplicateCode">
115-
<property name="fileExtensions" value="java"/>
117+
<property name="fileExtensions" value="java"/>
116118
</module>
117119
<module name="Header">
118120
<property name="headerFile" value="${basedir}/quality_assurance/java-header.txt"/>

0 commit comments

Comments
 (0)