Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-35255

Automated formatting for Scala Code for Blank Lines.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.0
    • Component/s: Build
    • Labels:
      None

      Description

      Based on the databricks' scala-style-code for blanklines.  https://github.com/databricks/scala-style-guide#blanklines

      Add a configuration to controls whether to enforce a blank line before and/or after a top-level statement spanning a certain number of lines.

      And upgrade mvn-scalafmt plugin to 1.0.4 to enable this configuration.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lipzhu Zhu, Lipeng
                Reporter:
                lipzhu Zhu, Lipeng
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: