You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2021/04/30 02:46:48 UTC

[spark] branch master updated: [SPARK-35255][BUILD] Automated formatting for Scala Code for Blank Lines

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 77e9152  [SPARK-35255][BUILD] Automated formatting for Scala Code for Blank Lines
77e9152 is described below

commit 77e9152898112f3acdf8e9b4820d3c7e9ac791ed
Author: lipzhu <li...@ebay.com>
AuthorDate: Fri Apr 30 11:45:58 2021 +0900

    [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 <li...@ebay.com>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 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 9a8813e..9598540 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 28c6eeb..d91e915 100644
--- a/pom.xml
+++ b/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 -->

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