Skip to content

Commit

Permalink
Don't init the gradle parser until we have confirmed the settings fil…
Browse files Browse the repository at this point in the history
…es is not excluded. (#325)
  • Loading branch information
blipper authored Aug 21, 2024
1 parent d9c519d commit f908308
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,10 +931,10 @@ private SourceFileStream parseGradleFiles(
GradleSettings finalGs = gs;
if (settingsGradleFile.exists()) {
Path settingsPath = baseDir.relativize(settingsGradleFile.toPath());
if (gradleParser == null) {
gradleParser = gradleParser();
}
if (!isExcluded(exclusions, settingsPath)) {
if (gradleParser == null) {
gradleParser = gradleParser();
}
sourceFiles = Stream.concat(
sourceFiles,
gradleParser
Expand Down

0 comments on commit f908308

Please sign in to comment.