Skip to content

Commit

Permalink
[Java] Disable three styling rules (#242)
Browse files Browse the repository at this point in the history
* Update ruleset.xml

* Update ruleset.xml

* Update ruleset.xml

---------

Co-authored-by: Artūrs Kadiķis <[email protected]>
  • Loading branch information
arifBurakDemiray and ArtursKadikis authored Feb 16, 2024
1 parent 12a0949 commit 4f562cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@
</properties>
</rule>
<rule ref="category/java/codestyle.xml/MDBAndSessionBeanNamingConvention" />
<!--
<rule ref="category/java/codestyle.xml/MethodArgumentCouldBeFinal" />
-->
<rule ref="category/java/codestyle.xml/NoPackage" />
<rule ref="category/java/codestyle.xml/PrematureDeclaration" />
<rule ref="category/java/codestyle.xml/RemoteInterfaceNamingConvention" />
Expand Down Expand Up @@ -284,6 +286,7 @@

<!-- Documentation rules -->
<rule ref="category/java/documentation.xml/CommentContent" />
<!--
<rule ref="category/java/documentation.xml/CommentRequired">
<properties>
<property name="methodWithOverrideCommentRequirement" value="Ignored" />
Expand All @@ -297,6 +300,7 @@
<property name="serialPersistentFieldsCommentRequired" value="Ignored" />
</properties>
</rule>
-->
<rule ref="category/java/documentation.xml/CommentSize">
<properties>
<property name="maxLines" value="10" />
Expand All @@ -319,7 +323,9 @@
<rule ref="category/java/errorprone.xml/AvoidCatchingNPE" />
<rule ref="category/java/errorprone.xml/AvoidCatchingThrowable" /><!--???-->
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" />
<!--
<rule ref="category/java/errorprone.xml/AvoidDuplicateLiterals" />
-->
<rule ref="category/java/errorprone.xml/AvoidEnumAsIdentifier" />
<rule ref="category/java/errorprone.xml/AvoidFieldNameMatchingMethodName" />
<rule ref="category/java/errorprone.xml/AvoidFieldNameMatchingTypeName" />
Expand Down Expand Up @@ -449,4 +455,4 @@
<rule ref="category/java/security.xml/HardCodedCryptoKey" />
<rule ref="category/java/security.xml/InsecureCryptoIv" />

</ruleset>
</ruleset>

0 comments on commit 4f562cc

Please sign in to comment.