le.java-convention-gradle-plugin.0.1.4.source-code.pmd.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-convention-gradle-plugin Show documentation
Show all versions of java-convention-gradle-plugin Show documentation
Defines the java convention in my java projects.
<?xml version="1.0"?> <ruleset name="Custom Rules" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> <description> Nada </description> <exclude-pattern>.*/(generated-source|generated|test)/.*</exclude-pattern> <rule ref="category/java/errorprone.xml"> <exclude name="DataflowAnomalyAnalysis"/> <exclude name="BeanMembersShouldSerialize"/> <exclude name="AvoidCatchingThrowable"/> <exclude name="AvoidLiteralsInIfCondition"/> <exclude name="NullAssignment"/> <exclude name="AvoidDuplicateLiterals"/> <exclude name="AvoidCatchingNPE"/> <exclude name="AvoidFieldNameMatchingMethodName"/> <exclude name="AvoidFieldNameMatchingTypeName"/> </rule> <rule ref="category/java/bestpractices.xml"> <exclude name="AvoidReassigningLoopVariables"/> <exclude name="GuardLogStatement"/> <exclude name="AvoidReassigningParameters"/> <exclude name="LiteralsFirstInComparisons"/> </rule> <rule ref="category/java/codestyle.xml"> <exclude name="ShortVariable"/> <exclude name="OnlyOneReturn"/> <exclude name="UnnecessaryFullyQualifiedName"/> <exclude name="ClassNamingConventions"/> <exclude name="LinguisticNaming"/> <exclude name="LongVariable"/> <exclude name="CommentDefaultAccessModifier"/> <exclude name="UnnecessaryModifier"/> <exclude name="AtLeastOneConstructor"/> <exclude name="TooManyStaticImports"/> <exclude name="MethodArgumentCouldBeFinal"/> <exclude name="UselessParentheses"/> <exclude name="FieldNamingConventions"/> <exclude name="ConfusingTernary"/> <exclude name="LocalVariableCouldBeFinal"/> <exclude name="UnnecessaryConstructor"/> <exclude name="LocalVariableNamingConventions"/> <exclude name="FormalParameterNamingConventions"/> <exclude name="MethodNamingConventions"/> <exclude name="UselessQualifiedThis"/> <exclude name="ShortClassName"/> <exclude name="BooleanGetMethodName"/> </rule> <rule ref="category/java/design.xml"> <exclude name="AvoidThrowingRawExceptionTypes"/> <exclude name="AvoidThrowingNullPointerException"/> <exclude name="AvoidRethrowingException"/> <exclude name="SignatureDeclareThrowsException"/> <exclude name="AvoidCatchingGenericException"/> <exclude name="LawOfDemeter"/> <exclude name="UseUtilityClass"/> <exclude name="CyclomaticComplexity"/> <exclude name="ExcessiveImports"/> <exclude name="CognitiveComplexity"/> <exclude name="CollapsibleIfStatements"/> <exclude name="NPathComplexity"/> <exclude name="NcssCount"/> <exclude name="ExcessiveMethodLength"/> <exclude name="DataClass"/> <exclude name="TooManyMethods"/> <exclude name="GodClass"/> <exclude name="AvoidDeeplyNestedIfStmts"/> <exclude name="ExcessivePublicCount"/> <exclude name="TooManyFields"/> <exclude name="ExcessiveParameterList"/> </rule> <rule ref="category/java/security.xml"> </rule> <!-- <rule ref="category/java/documentation.xml"> </rule> //--> <rule ref="category/java/performance.xml"> <exclude name="UseStringBufferForStringAppends"/> <exclude name="InsufficientStringBufferDeclaration"/> <exclude name="ConsecutiveAppendsShouldReuse"/> <exclude name="ConsecutiveLiteralAppends"/> <exclude name="AvoidInstantiatingObjectsInLoops"/> <exclude name="InefficientEmptyStringCheck"/> <exclude name="UseIndexOfChar"/> <exclude name="AppendCharacterWithChar"/> </rule> <rule ref="category/java/multithreading.xml"> <exclude name="UseConcurrentHashMap"/> <exclude name="AvoidSynchronizedAtMethodLevel"/> </rule> </ruleset>