Skip to content

Commit 4f562cc

Browse files
[Java] Disable three styling rules (#242)
* Update ruleset.xml * Update ruleset.xml * Update ruleset.xml --------- Co-authored-by: Artūrs Kadiķis <[email protected]>
1 parent 12a0949 commit 4f562cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ruleset.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@
9393
</properties>
9494
</rule>
9595
<rule ref="category/java/codestyle.xml/MDBAndSessionBeanNamingConvention" />
96+
<!--
9697
<rule ref="category/java/codestyle.xml/MethodArgumentCouldBeFinal" />
98+
-->
9799
<rule ref="category/java/codestyle.xml/NoPackage" />
98100
<rule ref="category/java/codestyle.xml/PrematureDeclaration" />
99101
<rule ref="category/java/codestyle.xml/RemoteInterfaceNamingConvention" />
@@ -284,6 +286,7 @@
284286

285287
<!-- Documentation rules -->
286288
<rule ref="category/java/documentation.xml/CommentContent" />
289+
<!--
287290
<rule ref="category/java/documentation.xml/CommentRequired">
288291
<properties>
289292
<property name="methodWithOverrideCommentRequirement" value="Ignored" />
@@ -297,6 +300,7 @@
297300
<property name="serialPersistentFieldsCommentRequired" value="Ignored" />
298301
</properties>
299302
</rule>
303+
-->
300304
<rule ref="category/java/documentation.xml/CommentSize">
301305
<properties>
302306
<property name="maxLines" value="10" />
@@ -319,7 +323,9 @@
319323
<rule ref="category/java/errorprone.xml/AvoidCatchingNPE" />
320324
<rule ref="category/java/errorprone.xml/AvoidCatchingThrowable" /><!--???-->
321325
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" />
326+
<!--
322327
<rule ref="category/java/errorprone.xml/AvoidDuplicateLiterals" />
328+
-->
323329
<rule ref="category/java/errorprone.xml/AvoidEnumAsIdentifier" />
324330
<rule ref="category/java/errorprone.xml/AvoidFieldNameMatchingMethodName" />
325331
<rule ref="category/java/errorprone.xml/AvoidFieldNameMatchingTypeName" />
@@ -449,4 +455,4 @@
449455
<rule ref="category/java/security.xml/HardCodedCryptoKey" />
450456
<rule ref="category/java/security.xml/InsecureCryptoIv" />
451457

452-
</ruleset>
458+
</ruleset>

0 commit comments

Comments
 (0)