-
Hi, I tried to write a ruleset that match only java files that are in ...
<exclude-pattern>.*</exclude-pattern>
<include-pattern>.*/src/main/java/com/laroueverte/.*(?!Foo).*.java</include-pattern>
... But the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I've just tested it and it works as expected… how are you running PMD? |
Beta Was this translation helpful? Give feedback.
-
Yes, that seems to be the case. But it has something to do with regex, rather than PMD: An easier way to achieve what you want: Just use exclusion without inclusion:
You could remove the "src/test/java"-part, if you set the maven-pmd-plugin parameter |
Beta Was this translation helpful? Give feedback.
Yes, that seems to be the case. But it has something to do with regex, rather than PMD:
https://regex101.com/r/F4JBok/1
An easier way to achieve what you want: Just use exclusion without inclusion:
You could remove the "src/test/java"-part, if you set the maven-pmd-plugin parameter
<includeTests>false</includeTests>
.