You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/08/30 11:56:04 UTC

[GitHub] [spark] panbingkun commented on a diff in pull request #37727: [SPARK-40056][BUILD] Upgrade mvn-scalafmt from 1.0.4 to 1.1.1640084764.9f463a9

panbingkun commented on code in PR #37727:
URL: https://github.com/apache/spark/pull/37727#discussion_r958384633


##########
dev/.scalafmt.conf:
##########
@@ -22,6 +22,13 @@ align.tokens = []
 optIn = {
   configStyleArguments = false
 }
-danglingParentheses = false
-docstrings = JavaDoc
+danglingParentheses.preset = false
+docstrings.style = Asterisk
 maxColumn = 98
+runner.dialect = scala212
+fileOverride {
+  "glob:**/src/**/scala-2.13/**.scala" {
+    runner.dialect = scala213
+  }
+}
+version = 3.5.9

Review Comment:
   ### why version 3.5.9 ?
   Buildin version(Maven plugin's dependency) is : 3.2.1
   But current max version is : 3.5.9 (https://mvnrepository.com/artifact/org.scalameta/scalafmt-core)
   <img width="890" alt="image" src="https://user-images.githubusercontent.com/15246973/187428866-35b7aa1e-f7b1-41b2-9222-a1e87d85aca7.png">
   
   #### If set version = 3.5.9, plugin will dynamically download as following:
   code: https://github.com/scalameta/scalafmt/blob/master/scalafmt-dynamic/src/main/scala/org/scalafmt/dynamic/ScalafmtModuleLoader.scala#L25-L39
   <img width="724" alt="image" src="https://user-images.githubusercontent.com/15246973/187427653-f7feea71-4358-4ff7-96d3-5da9d3beee64.png">
   
   ### root cause
   <img width="797" alt="image" src="https://user-images.githubusercontent.com/15246973/187427474-a2fe19e8-d6a4-4edb-bebc-5ea2b068f0b2.png">
   
   



-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org