From 77e9152898112f3acdf8e9b4820d3c7e9ac791ed Mon Sep 17 00:00:00 2001 From: lipzhu Date: Fri, 30 Apr 2021 11:45:58 +0900 Subject: [PATCH] [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 Signed-off-by: HyukjinKwon --- dev/.scalafmt.conf | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/.scalafmt.conf b/dev/.scalafmt.conf index 9a8813e3b3..9598540752 100644 --- a/dev/.scalafmt.conf +++ b/dev/.scalafmt.conf @@ -25,4 +25,4 @@ optIn = { danglingParentheses = false docstrings = JavaDoc maxColumn = 98 - +newlines.topLevelStatements = [before,after] diff --git a/pom.xml b/pom.xml index 28c6eebab5..d91e915db3 100644 --- a/pom.xml +++ b/pom.xml @@ -3159,7 +3159,7 @@ org.antipathy mvn-scalafmt_${scala.binary.version} - 1.0.3 + 1.0.4 ${scalafmt.parameters} ${scalafmt.skip}