RussellSpitzer commented on code in PR #15676:
URL: https://github.com/apache/iceberg/pull/15676#discussion_r3033201120


##########
baseline.gradle:
##########
@@ -187,6 +187,21 @@ subprojects {
   }
 
   pluginManager.withPlugin('scala') {
+    apply plugin: 'io.github.cosmicsilence.scalafix'
+
+    scalafix {
+      configFile = file("${rootDir}/.baseline/scala/.scalafix.conf")
+      semanticdb {
+        autoConfigure = true
+      }
+    }
+
+    // When running scalafix, downgrade unused import errors to warnings so 
that
+    // compilation succeeds and SemanticDB is produced for Scalafix to process.
+    boolean scalafixRun = gradle.startParameter.taskNames.any {

Review Comment:
   This really feels like a bug in the cosmic-silence plugin. It should be 
automatically be downgrading the tasks on it's own.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to