@@ -488,9 +488,9 @@ public void run(ResultsContainer results, ExecutionContext ctx) {
488
488
Path afterLocation = results .getProjectRoot ().resolve (result .getAfter ().getSourcePath ());
489
489
File afterParentDir = afterLocation .toFile ().getParentFile ();
490
490
// Rename the directory if its name case has been changed, e.g. camel case to lower case.
491
- if (afterParentDir .exists ()
492
- && afterParentDir .getAbsolutePath ().equalsIgnoreCase ((originalParentDir .getAbsolutePath ()))
493
- && !afterParentDir .getAbsolutePath ().equals (originalParentDir .getAbsolutePath ())) {
491
+ if (afterParentDir .exists () &&
492
+ afterParentDir .getAbsolutePath ().equalsIgnoreCase ((originalParentDir .getAbsolutePath ())) &&
493
+ !afterParentDir .getAbsolutePath ().equals (originalParentDir .getAbsolutePath ())) {
494
494
if (!originalParentDir .renameTo (afterParentDir )) {
495
495
throw new RuntimeException ("Unable to rename directory from " + originalParentDir .getAbsolutePath () + " To: " + afterParentDir .getAbsolutePath ());
496
496
}
@@ -1101,14 +1101,14 @@ private SourceFileStream parseGradleFiles(
1101
1101
public FileVisitResult preVisitDirectory (Path dir , BasicFileAttributes attrs ) {
1102
1102
Path dirFromRoot = baseDir .relativize (dir );
1103
1103
String name = dirFromRoot .toString ();
1104
- if (subproject .getLayout ().getBuildDirectory ().getAsFile ().get ().toPath ().equals (dir )
1105
- || name .startsWith ("." ) // Skip .gradle, .idea, .moderne, etc.
1104
+ if (subproject .getLayout ().getBuildDirectory ().getAsFile ().get ().toPath ().equals (dir ) ||
1105
+ name .startsWith ("." ) // Skip .gradle, .idea, .moderne, etc.
1106
1106
|| name .equals ("out" ) // IntelliJ standard output directory
1107
1107
|| subproject .getSubprojects ().stream ()
1108
- .anyMatch (sp -> dir .equals (sp .getProjectDir ().toPath ()))
1109
- || subproject .getGradle ().getIncludedBuilds ().stream ()
1110
- .anyMatch (ib -> dir .equals (ib .getProjectDir ().toPath ()))
1111
- || isExcluded (exclusions , baseDir .relativize (dir ))) {
1108
+ .anyMatch (sp -> dir .equals (sp .getProjectDir ().toPath ())) ||
1109
+ subproject .getGradle ().getIncludedBuilds ().stream ()
1110
+ .anyMatch (ib -> dir .equals (ib .getProjectDir ().toPath ())) ||
1111
+ isExcluded (exclusions , baseDir .relativize (dir ))) {
1112
1112
return FileVisitResult .SKIP_SUBTREE ;
1113
1113
}
1114
1114
0 commit comments