Skip to content

Instantly share code, notes, and snippets.

@mageddo
Created February 21, 2019 17:42
Show Gist options
  • Save mageddo/fa2ddd7fa4e2c77d20a2074ea76b9243 to your computer and use it in GitHub Desktop.
Save mageddo/fa2ddd7fa4e2c77d20a2074ea76b9243 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<ruleset name="myruleset">
<description>My ruleset</description>
<rule ref="category/java/bestpractices.xml" />
<rule ref="category/java/codestyle.xml" >
<exclude name="AtLeastOneConstructor" />
<exclude name="MethodArgumentCouldBeFinal" />
<exclude name="LocalVariableCouldBeFinal" />
<exclude name="DefaultPackage" />
<exclude name="CommentDefaultAccessModifier" />
<exclude name="LongVariable"/>
</rule>
<rule ref="category/java/codestyle.xml/LongVariable" >
<properties>
<property name="minimum" type="Integer" value="30" />
</properties>
</rule>
<rule ref="category/java/design.xml" >
<exclude name="AvoidCatchingGenericException" />
<exclude name="AvoidThrowingRawExceptionTypes" />
<exclude name="LawOfDemeter" />
</rule>
<rule ref="category/java/documentation.xml" >
<exclude name="CommentRequired" />
</rule>
<rule ref="category/java/errorprone.xml">
<exclude name="DataflowAnomalyAnalysis"/>
<exclude name="BeanMembersShouldSerialize"/>
<exclude name="AvoidFieldNameMatchingMethodName"/>
<exclude name="NullAssignment"/>
<exclude name="UseLocaleWithCaseConversions"/>
<exclude name="SimpleDateFormatNeedsLocale"/>
</rule>
<rule ref="category/java/multithreading.xml" >
<exclude name="UseConcurrentHashMap" />
</rule>
<rule ref="category/java/performance.xml" >
<exclude name="InsufficientStringBufferDeclaration" />
<exclude name="AvoidInstantiatingObjectsInLoops" />
<exclude name="ConsecutiveLiteralAppends" />
</rule>
<rule ref="category/java/security.xml" />
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment