huaxingao commented on code in PR #15676: URL: https://github.com/apache/iceberg/pull/15676#discussion_r2963556545
########## site/docs/contribute.md: ########## @@ -303,6 +304,12 @@ In order to automatically fix Java code style issues, please use `./gradlew spot since that version is compatible with JDK 8. When formatting the code in the IDE, there is a slight chance that it will produce slightly different results. In such a case please run `./gradlew spotlessApply` as CI will check the style against **google-java-format** 1.7. +For Scala code, unused imports are treated as compilation errors. To automatically remove unused imports, run [Scalafix](https://scalacenter.github.io/scalafix/): + +```bash +./gradlew scalafix -DsparkVersions=4.0 -DscalaVersion=2.13 Review Comment: Does this also work with Spark 3.5 scala 2.12? -- 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]
