[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:
lipzhu 2021-04-30 11:45:58 +09:00 committed by HyukjinKwon
parent e8bf8fe213
commit 77e9152898
2 changed files with 2 additions and 2 deletions

View file

@ -25,4 +25,4 @@ optIn = {
danglingParentheses = false danglingParentheses = false
docstrings = JavaDoc docstrings = JavaDoc
maxColumn = 98 maxColumn = 98
newlines.topLevelStatements = [before,after]

View file

@ -3159,7 +3159,7 @@
<plugin> <plugin>
<groupId>org.antipathy</groupId> <groupId>org.antipathy</groupId>
<artifactId>mvn-scalafmt_${scala.binary.version}</artifactId> <artifactId>mvn-scalafmt_${scala.binary.version}</artifactId>
<version>1.0.3</version> <version>1.0.4</version>
<configuration> <configuration>
<parameters>${scalafmt.parameters}</parameters> <!-- (Optional) Additional command line arguments --> <parameters>${scalafmt.parameters}</parameters> <!-- (Optional) Additional command line arguments -->
<skip>${scalafmt.skip}</skip> <!-- (Optional) skip formatting --> <skip>${scalafmt.skip}</skip> <!-- (Optional) skip formatting -->