Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Disable three styling rules #242

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading