-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from ADORSYS-GIS/chore/add-pmd-check-to-project
Chore/add pmd check to project
- Loading branch information
Showing
6 changed files
with
269 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../com/adorsys/webank/Config/WebConfig.java → .../com/adorsys/webank/config/WebConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,66 @@ | |
<module>online-banking-app</module> | ||
</modules> | ||
|
||
<name>Webank</name> | ||
<description>OpenSource Implementation Of Online banking Functionalities</description> | ||
|
||
<url></url> | ||
|
||
<licenses> | ||
<license> | ||
<name>The Apache License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
</license> | ||
</licenses> | ||
|
||
<developers> | ||
<developer> | ||
<name>Francis Pouatcha</name> | ||
<email>[email protected]</email> | ||
<organization>adorsys GmbH & Co KG</organization> | ||
<organizationUrl>https://adorsys.de/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Nancy Muyeh</name> | ||
<email>[email protected]</email> | ||
<organization>adorsys GmbH & Co KG</organization> | ||
<organizationUrl>https://adorsys.de/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Chia Hans Ful</name> | ||
<email>[email protected]</email> | ||
<organization>adorsys GmbH & Co KG</organization> | ||
<organizationUrl>https://adorsys.de/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Nkwa Jude Tambe</name> | ||
<email>[email protected]</email> | ||
<organization>adorsys GmbH & Co KG</organization> | ||
<organizationUrl>https://adorsys.de/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Ariel Tchikaya</name> | ||
<email>[email protected]</email> | ||
<organization>adorsys GmbH & Co KG</organization> | ||
<organizationUrl>https://adorsys.de/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name> | ||
Koufan De Koufan Menkene</name> | ||
<email>[email protected]</email> | ||
<organization>adorsys GmbH & Co KG</organization> | ||
<organizationUrl>https://adorsys.de/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Yvan Henang </name> | ||
<email>[email protected]</email> | ||
<organization>SKY ENGINEERING PROFESSIONAL Sarl</organization> | ||
<organizationUrl>https://skyengpro.de/</organizationUrl> | ||
</developer> | ||
|
||
</developers> | ||
|
||
|
||
|
||
<properties> | ||
<!-- Common properties --> | ||
|
@@ -449,7 +509,43 @@ | |
<!-- <failBuildOnCVSS>5</failBuildOnCVSS>--> | ||
<!-- </configuration>--> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-pmd-plugin</artifactId> | ||
<version>${maven-pmd-plugin.version}</version> | ||
<configuration> | ||
<minimumTokens>100</minimumTokens> | ||
<targetJdk>${java.version}</targetJdk> | ||
<analysisCache>true</analysisCache> | ||
<linkXRef>false</linkXRef> | ||
<rulesets> | ||
<ruleset>${ruleset.basedir}/qa/pmd/pmd-ruleset.xml</ruleset> | ||
</rulesets> | ||
<includeTests>true</includeTests> | ||
<failOnViolation>true</failOnViolation> | ||
<printFailingErrors>true</printFailingErrors> | ||
<excludes> | ||
<exclude>**/*MapperImpl.java</exclude> | ||
</excludes> | ||
<excludeRoots> | ||
<excludeRoot>../ledgers-deposit-account-service-impl/target/generated-sources/annotations/ | ||
</excludeRoot> | ||
<excludeRoot>../ledgers-middleware-rest-server/target/generated-sources/annotations/ | ||
</excludeRoot> | ||
<excludeRoot>../ledgers-middleware-service-impl/target/generated-sources/annotations/ | ||
</excludeRoot> | ||
<excludeRoot>../ledgers-postings-service-impl/target/generated-sources/annotations/ | ||
</excludeRoot> | ||
<excludeRoot>../ledgers-sca-service-impl/target/generated-sources/annotations/ | ||
</excludeRoot> | ||
<excludeRoot>../ledgers-user-management-service-impl/target/generated-sources/annotations/ | ||
</excludeRoot> | ||
</excludeRoots> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
~ Copyright (c) 2018-2024 adorsys GmbH and Co. KG | ||
~ All rights are reserved. | ||
--> | ||
|
||
<ruleset name="whizbang PMD ruleset" | ||
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 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> | ||
|
||
<description> | ||
This ruleset defines the PMD rules for webank-online-banking project | ||
</description> | ||
<rule ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP" /> | ||
<rule ref="category/java/bestpractices.xml/AbstractClassWithoutAbstractMethod" /> | ||
<rule ref="category/java/bestpractices.xml/ArrayIsStoredDirectly" /> | ||
<rule ref="category/java/bestpractices.xml/AvoidReassigningLoopVariables" /> | ||
<rule ref="category/java/bestpractices.xml/AvoidReassigningLoopVariables" /> | ||
<rule ref="category/java/bestpractices.xml/AvoidPrintStackTrace" /> | ||
<rule ref="category/java/bestpractices.xml/AvoidReassigningParameters" /> | ||
<rule ref="category/java/bestpractices.xml/CheckResultSet" /> | ||
<rule ref="category/java/bestpractices.xml/DefaultLabelNotLastInSwitchStmt" /> | ||
<rule ref="category/java/bestpractices.xml/JUnit4SuitesShouldUseSuiteAnnotation" /> | ||
<rule ref="category/java/bestpractices.xml/JUnit4TestShouldUseAfterAnnotation" /> | ||
<rule ref="category/java/bestpractices.xml/JUnit4TestShouldUseBeforeAnnotation" /> | ||
<rule ref="category/java/bestpractices.xml/JUnit4TestShouldUseTestAnnotation" /> | ||
<rule ref="category/java/bestpractices.xml/LooseCoupling" /> | ||
<rule ref="category/java/bestpractices.xml/MethodReturnsInternalArray" /> | ||
<rule ref="category/java/bestpractices.xml/MissingOverride" /> | ||
<rule ref="category/java/bestpractices.xml/OneDeclarationPerLine" /> | ||
<rule ref="category/java/bestpractices.xml/ReplaceEnumerationWithIterator" /> | ||
<rule ref="category/java/bestpractices.xml/ReplaceHashtableWithMap" /> | ||
<rule ref="category/java/bestpractices.xml/ReplaceVectorWithList" /> | ||
<rule ref="category/java/bestpractices.xml/SwitchStmtsShouldHaveDefault" /> | ||
<rule ref="category/java/bestpractices.xml/SystemPrintln" /> | ||
<rule ref="category/java/bestpractices.xml/UnusedFormalParameter" /> | ||
<rule ref="category/java/bestpractices.xml/UnusedLocalVariable" /> | ||
<rule ref="category/java/bestpractices.xml/UnusedPrivateField" /> | ||
<rule ref="category/java/bestpractices.xml/UnusedPrivateMethod" /> | ||
<rule ref="category/java/bestpractices.xml/UseCollectionIsEmpty" /> | ||
<rule ref="category/java/bestpractices.xml/UseVarargs" /> | ||
|
||
<rule ref="category/java/codestyle.xml/AvoidDollarSigns" /> | ||
<rule ref="category/java/codestyle.xml/AvoidProtectedFieldInFinalClass" /> | ||
<rule ref="category/java/codestyle.xml/AvoidUsingNativeCode" /> | ||
<rule ref="category/java/codestyle.xml/BooleanGetMethodName" /> | ||
<rule ref="category/java/codestyle.xml/ControlStatementBraces" /> | ||
<rule ref="category/java/codestyle.xml/EmptyMethodInAbstractClassShouldBeAbstract" /> | ||
<rule ref="category/java/codestyle.xml/ExtendsObject" /> | ||
<rule ref="category/java/codestyle.xml/FieldDeclarationsShouldBeAtStartOfClass" /> | ||
<rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop" /> | ||
<rule ref="category/java/codestyle.xml/IdenticalCatchBranches" /> | ||
<rule ref="category/java/codestyle.xml/LongVariable"> | ||
<properties> | ||
<property name="minimum" value="50"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml/NoPackage" /> | ||
<rule ref="category/java/codestyle.xml/PackageCase" /> | ||
<rule ref="category/java/codestyle.xml/PrematureDeclaration" /> | ||
<rule ref="category/java/codestyle.xml/ShortClassName" > | ||
<properties> | ||
<property name="minimum" value="3"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml/ShortMethodName" > | ||
<properties> | ||
<property name="minimum" value="4"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml/UnnecessaryFullyQualifiedName" /> | ||
<rule ref="category/java/codestyle.xml/UnnecessaryLocalBeforeReturn" /> | ||
<rule ref="category/java/codestyle.xml/UnnecessaryModifier" /> | ||
<rule ref="category/java/codestyle.xml/UnnecessaryReturn" /> | ||
<rule ref="category/java/codestyle.xml/UselessParentheses" /> | ||
<rule ref="category/java/codestyle.xml/UselessQualifiedThis" /> | ||
|
||
<rule ref="category/java/design.xml/AvoidDeeplyNestedIfStmts" > | ||
<properties> | ||
<property name="problemDepth" value="4"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/design.xml/AvoidRethrowingException" /> | ||
<rule ref="category/java/design.xml/AvoidThrowingNewInstanceOfSameException" /> | ||
<rule ref="category/java/design.xml/AvoidThrowingNullPointerException" /> | ||
<rule ref="category/java/design.xml/AvoidThrowingRawExceptionTypes" /> | ||
<rule ref="category/java/design.xml/CollapsibleIfStatements" /> | ||
<rule ref="category/java/design.xml/CouplingBetweenObjects" /> | ||
<rule ref="category/java/design.xml/CyclomaticComplexity"/> | ||
<rule ref="category/java/design.xml/GodClass" /> | ||
<rule ref="category/java/design.xml/DoNotExtendJavaLangError" /> | ||
<rule ref="category/java/design.xml/ExceptionAsFlowControl" /> | ||
<rule ref="category/java/design.xml/ExcessivePublicCount" /> | ||
<rule ref="category/java/design.xml/FinalFieldCouldBeStatic" /> | ||
<rule ref="category/java/design.xml/NPathComplexity" /> | ||
<rule ref="category/java/design.xml/SignatureDeclareThrowsException" /> | ||
<rule ref="category/java/design.xml/SimplifiedTernary" /> | ||
<rule ref="category/java/design.xml/SimplifyBooleanExpressions" /> | ||
<rule ref="category/java/design.xml/SimplifyBooleanReturns" /> | ||
<rule ref="category/java/design.xml/SingularField" /> | ||
<rule ref="category/java/design.xml/SwitchDensity" /> | ||
<rule ref="category/java/design.xml/TooManyMethods" > | ||
<properties> | ||
<property name="maxmethods" value="20"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/design.xml/UselessOverridingMethod" /> | ||
|
||
<rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" /> | ||
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" /> | ||
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" /> | ||
<rule ref="category/java/errorprone.xml/AvoidUsingOctalValues" /> | ||
<rule ref="category/java/errorprone.xml/BrokenNullCheck" /> | ||
<rule ref="category/java/errorprone.xml/CheckSkipResult" /> | ||
<rule ref="category/java/errorprone.xml/ClassCastExceptionWithToArray" /> | ||
<rule ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices" /> | ||
<rule ref="category/java/errorprone.xml/EmptyCatchBlock" /> | ||
<rule ref="category/java/errorprone.xml/EmptyIfStmt" /> | ||
<rule ref="category/java/errorprone.xml/JumbledIncrementer" /> | ||
<rule ref="category/java/errorprone.xml/MisplacedNullCheck" /> | ||
<rule ref="category/java/errorprone.xml/OverrideBothEqualsAndHashcode" /> | ||
<rule ref="category/java/errorprone.xml/ReturnFromFinallyBlock" /> | ||
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement" /> | ||
<rule ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" /> | ||
<rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals" /> | ||
<rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" /> | ||
|
||
<rule ref="category/java/multithreading.xml/AvoidThreadGroup" /> | ||
<rule ref="category/java/multithreading.xml/DontCallThreadRun" /> | ||
<rule ref="category/java/multithreading.xml/DoubleCheckedLocking" /> | ||
|
||
<rule ref="category/java/performance.xml/BigIntegerInstantiation" /> | ||
|
||
</ruleset> |