You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2022/04/19 10:40:40 UTC

[GitHub] [lucene] rmuir commented on a diff in pull request #817: improve spotless error to suggest running 'gradlew tidy'

rmuir commented on code in PR #817:
URL: https://github.com/apache/lucene/pull/817#discussion_r852889508


##########
gradle/validation/spotless.gradle:
##########
@@ -111,3 +111,9 @@ configure(project(":lucene").subprojects) { prj ->
     v.dependsOn ":checkJdkInternalsExportedToGradle"
   }
 }
+
+gradle.taskGraph.afterTask { Task task, TaskState state ->
+  if (task.name == 'spotlessJavaCheck' && state.failure) {
+    throw new GradleException("\n***************************\n*PLEASE RUN ./gradle tidy!*\n***************************");

Review Comment:
   OOPS



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org