jackylee-ch commented on code in PR #15676:
URL: https://github.com/apache/iceberg/pull/15676#discussion_r3033244807
##########
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:
Its working principle is to handle the issue only after a Scala compile
warning occurs, since it doesn't perform the unused check itself.
--
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]