Skip to content

Commit

Permalink
#91 Silenced PMD complaints about directories
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbethancourt committed Sep 25, 2024
1 parent ec3be73 commit 7fed315
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void runPmdAnalysis() throws IOException {
log.info("files to be scanned: " + Paths.get(repositoryPath));

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

report = pmd.performAnalysisAndCollectReport();
Expand Down

0 comments on commit 7fed315

Please sign in to comment.