We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec3be73 commit 7fed315Copy full SHA for 7fed315
cost-benefit-calculator/src/main/java/org/hjug/cbc/CostBenefitCalculator.java
@@ -181,7 +181,7 @@ public void runPmdAnalysis() throws IOException {
181
log.info("files to be scanned: " + Paths.get(repositoryPath));
182
183
try (Stream<Path> files = Files.walk(Paths.get(repositoryPath))) {
184
- files.forEach(file -> pmd.files().addFile(file));
+ files.filter(Files::isRegularFile).forEach(file -> pmd.files().addFile(file));
185
}
186
187
report = pmd.performAnalysisAndCollectReport();
0 commit comments