소스 검색

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.
Rory Hunter 5 년 전
부모
커밋
d32b6671f6
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      benchmarks/build.gradle

+ 9 - 0
benchmarks/build.gradle

@@ -64,3 +64,12 @@ thirdPartyAudit.ignoreViolations(
   'org.openjdk.jmh.profile.HotspotRuntimeProfiler',
   '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'
+  }
+}