We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d90255 commit a9f0276Copy full SHA for a9f0276
qulice-pmd/src/main/java/com/qulice/pmd/PmdValidator.java
@@ -65,7 +65,12 @@ public Collection<Violation> validate(final Collection<File> files) {
65
final SourceValidator validator = new SourceValidator(this.env);
66
final Collection<DataSource> sources = new LinkedList<>();
67
for (final File file : files) {
68
- sources.add(new FileDataSource(file));
+ final String name = file.getPath().substring(
69
+ this.env.basedir().toString().length()
70
+ );
71
+ if (!this.env.exclude("pmd", name)) {
72
+ sources.add(new FileDataSource(file));
73
+ }
74
}
75
final Collection<RuleViolation> breaches = validator.validate(
76
sources, this.env.basedir().getPath()
0 commit comments