[SPARK-35255][BUILD] Automated formatting for Scala Code for Blank Lines
### What changes were proposed in this pull request? https://github.com/databricks/scala-style-guide#blanklines https://scalameta.org/scalafmt/docs/configuration.html#newlinestoplevelstatements ### How was this patch tested? Manually tested by modifying a few files and running ./dev/scalafmt then checking that ./dev/scalastyle still passed. Closes #32383 from lipzhu/SPARK-35255. Authored-by: lipzhu <lipzhu@ebay.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
This commit is contained in:
parent
e8bf8fe213
commit
77e9152898
|
@ -25,4 +25,4 @@ optIn = {
|
|||
danglingParentheses = false
|
||||
docstrings = JavaDoc
|
||||
maxColumn = 98
|
||||
|
||||
newlines.topLevelStatements = [before,after]
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -3159,7 +3159,7 @@
|
|||
<plugin>
|
||||
<groupId>org.antipathy</groupId>
|
||||
<artifactId>mvn-scalafmt_${scala.binary.version}</artifactId>
|
||||
<version>1.0.3</version>
|
||||
<version>1.0.4</version>
|
||||
<configuration>
|
||||
<parameters>${scalafmt.parameters}</parameters> <!-- (Optional) Additional command line arguments -->
|
||||
<skip>${scalafmt.skip}</skip> <!-- (Optional) skip formatting -->
|
||||
|
|
Loading…
Reference in a new issue