This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit fd391f48e0ce85ce81f4e39560739b43de7ee3c0 Author: Alex Herbert <[email protected]> AuthorDate: Fri Nov 8 21:33:54 2019 +0000 PMD rule changes. - Exclude UseUnderscoresInNumericLiterals - Exclude ShortClassName - Allow standard names for utility classes --- src/main/resources/pmd/pmd-ruleset.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/resources/pmd/pmd-ruleset.xml b/src/main/resources/pmd/pmd-ruleset.xml index eead041..e3b6b26 100644 --- a/src/main/resources/pmd/pmd-ruleset.xml +++ b/src/main/resources/pmd/pmd-ruleset.xml @@ -40,6 +40,8 @@ <exclude name="AtLeastOneConstructor" /> <exclude name="GenericsNaming" /> <exclude name="OnlyOneReturn" /> + <exclude name="UseUnderscoresInNumericLiterals" /> + <exclude name="ShortClassName" /> </rule> <rule ref="category/java/design.xml"> <exclude name="TooManyMethods" /> @@ -71,6 +73,16 @@ <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[matches(@Image, '^.*$')]"/> </properties> </rule> + <rule ref="category/java/codestyle.xml/ClassNamingConventions"> + <properties> + <property name="classPattern" value="[A-Z][a-zA-Z0-9]*" /> + <property name="abstractClassPattern" value="[A-Z][a-zA-Z0-9]*" /> + <property name="interfacePattern" value="[A-Z][a-zA-Z0-9]*" /> + <property name="enumPattern" value="[A-Z][a-zA-Z0-9]*" /> + <property name="annotationPattern" value="[A-Z][a-zA-Z0-9]*" /> + <property name="utilityClassPattern" value="[A-Z][a-zA-Z0-9]*" /> + </properties> + </rule> <rule ref="category/java/design.xml/CyclomaticComplexity"> <properties>
