Skip to content

Commit

Permalink
pmd should ignore test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Rogozinski committed Oct 8, 2018
1 parent b601a6a commit 364e015
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@

<rule ref="category/java/documentation.xml/CommentRequired" deprecated="true">
<properties>
<!-- Ignore @Test methods -->
<property name="violationSuppressXPath"
value="//MethodDeclaration/../Annotation/MarkerAnnotation/Name[@Image='Test']" />
<property name="protectedMethodCommentRequirement" value="Ignored"/>
<property name="fieldCommentRequirement" value="Ignored"/>
</properties>
Expand Down

0 comments on commit 364e015

Please sign in to comment.