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.
This commit is contained in:
Rory Hunter 2020-02-28 20:54:47 +00:00 committed by Rory Hunter
parent 331d4bb0af
commit 39de995740
1 changed files with 9 additions and 0 deletions

View File

@ -64,3 +64,12 @@ thirdPartyAudit.ignoreViolations(
'org.openjdk.jmh.profile.HotspotRuntimeProfiler', 'org.openjdk.jmh.profile.HotspotRuntimeProfiler',
'org.openjdk.jmh.util.Utils' 'org.openjdk.jmh.util.Utils'
) )
spotless {
java {
// IDEs can sometimes run annotation processors that leave files in
// here, causing Spotless to complain. Even though this path ought not
// to exist, exclude it anyway in order to avoid spurious failures.
targetExclude 'src/main/generated/**/*.java'
}
}