Skip to content

Commit 7fed315

Browse files
#91 Silenced PMD complaints about directories
1 parent ec3be73 commit 7fed315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cost-benefit-calculator/src/main/java/org/hjug/cbc/CostBenefitCalculator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public void runPmdAnalysis() throws IOException {
181181
log.info("files to be scanned: " + Paths.get(repositoryPath));
182182

183183
try (Stream<Path> files = Files.walk(Paths.get(repositoryPath))) {
184-
files.forEach(file -> pmd.files().addFile(file));
184+
files.filter(Files::isRegularFile).forEach(file -> pmd.files().addFile(file));
185185
}
186186

187187
report = pmd.performAnalysisAndCollectReport();

0 commit comments

Comments
 (0)