Skip to content

Commit

Permalink
Update static code analysis configs
Browse files Browse the repository at this point in the history
  • Loading branch information
spannm committed Feb 18, 2025
1 parent 4e5fa0e commit c25b0c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<connection>scm:git:ssh//git@github.com/${developerId}/${project.artifactId}.git</connection>
<developerConnection>scm:git:ssh://git@github.com/${developerId}/${project.artifactId}.git</developerConnection>
<url>https://github.com/${developerId}/${project.artifactId}/tree/master</url>
</scm>
</scm>

<issueManagement>
<system>Github</system>
Expand Down
10 changes: 6 additions & 4 deletions src/test/resources/team/checkstyle-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
<module name="TreeWalker">
<module name="ArrayTypeStyle"/>
<module name="AvoidNestedBlocks"/>
<!--module name="CatchParameterName">
<property name="format" value="(^_ex[a-zA-Z0-9]*$)|(^_[a-z][a-zA-Z0-9]*Exception$)"/>
</module-->
<module name="CatchParameterName">
<property name="format" value="^_(ex[a-zA-Z0-9]*)|([a-z][a-zA-Z0-9]*Exception|ignored)$"/>
</module>
<module name="ConstantName"/>
<!--module name="DeclarationOrder" /-->
<module name="EmptyBlock"/>
Expand Down Expand Up @@ -81,7 +81,9 @@
<module name="LocalVariableName">
<property name="format" value="(^[a-z][a-zA-Z0-9]*$)|(^[ijk]$)"/>
</module>
<module name="MemberName"/>
<module name="MemberName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$" />
</module>
<module name="MethodLength">
<property name="max" value="400"/>
<property name="countEmpty" value="false"/>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/team/pmd-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<rule ref="category/java/codestyle.xml/ClassNamingConventions">
<properties>
<property name="abstractClassPattern" value="[A-Z][a-zA-Z0-9]*" />
<property name="interfacePattern" value="(?:IF?[A-Z][a-zA-Z0-9]*)|(?:[A-Z][a-zA-Z0-9]+Constants[0-9]*)" />
<property name="interfacePattern" value="(?:(?:I|IF)?[A-Z][a-zA-Z0-9]*)|(?:[A-Z][a-zA-Z0-9]+Constants[0-9]*)" />
<property name="testClassPattern" value="^[A-Z][a-zA-Z0-9]*Test[0-9]*$" />
</properties>
</rule>
Expand Down

0 comments on commit c25b0c0

Please sign in to comment.