[ 
https://issues.apache.org/jira/browse/MPMD-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14954734#comment-14954734
 ] 

Romain PELISSE commented on MPMD-216:
-------------------------------------

Ok, found the issue is my config - the configuration needs to lives in the 
<reporting> section of the pom, not the <build/>. Sorry, my bad about that. 
However, it seems that adding custom rulesets is broken. I'm going to look into 
that and open an other JIRA if necessary.

For completion, I've added the "fixed" version of the reproducer.

> includeTests is not working properly
> ------------------------------------
>
>                 Key: MPMD-216
>                 URL: https://issues.apache.org/jira/browse/MPMD-216
>             Project: Maven PMD Plugin
>          Issue Type: Bug
>          Components: PMD
>    Affects Versions: 3.5
>            Reporter: Romain PELISSE
>         Attachments: pmd-issue-reproducer.zip
>
>
> According to the plugin documentation, if the includeTests value is set to 
> "true", PMD should check - during pmd:check phase, that java files in the 
> testSourceDirectory does not have any violations.
> However, if you unzip the attach project and run:
> $ mvn pmd:check
> You'll see that the test files are NOT checked. If you simply rename tthe 
> src/test in src/main (or use link), and run again, you can see PMD is indeed 
> checking the code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to