Skip to content

Commit 2670715

Browse files
committed
Exclude generated source from benchmarks formatting (#52968)
IDEs can sometimes run annotation processors that leave files in `src/main/generated/**/*.java`, causing Spotless to complain. Even though this path ought not to exist, exclude it anyway in order to avoid spurious failures.
1 parent eed88b6 commit 2670715

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

benchmarks/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,12 @@ thirdPartyAudit.ignoreViolations(
6565
'org.openjdk.jmh.profile.HotspotRuntimeProfiler',
6666
'org.openjdk.jmh.util.Utils'
6767
)
68+
69+
spotless {
70+
java {
71+
// IDEs can sometimes run annotation processors that leave files in
72+
// here, causing Spotless to complain. Even though this path ought not
73+
// to exist, exclude it anyway in order to avoid spurious failures.
74+
targetExclude 'src/main/generated/**/*.java'
75+
}
76+
}

0 commit comments

Comments
 (0)