-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to latest sbt-scalafmt and scalafmt (#1596)
* Update sbt-scalafmt to 2.5.2 * Format code * Adjust wrong formatting --------- Co-authored-by: Scala Steward <[email protected]>
- Loading branch information
1 parent
3894d05
commit 0f69b0c
Showing
56 changed files
with
982 additions
and
823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# Version https://scalameta.org/scalafmt/docs/configuration.html#version | ||
version = 3.8.1 | ||
# Dialect https://scalameta.org/scalafmt/docs/configuration.html#scala-dialects | ||
runner.dialect = scala212 | ||
|
||
style = IntelliJ | ||
maxColumn = 120 | ||
rewrite.rules = [SortImports, RedundantBraces] | ||
rewrite.rules = [SortImports, RedundantBraces] | ||
docstrings.blankFirstLine = yes | ||
|
||
project.excludePaths = [ | ||
# [error] (Compile / scalafmt) org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: | ||
# WixHelper.scala:105: error: Unable to format file due to bug in scalafmt | ||
"glob:**/src/main/scala/com/typesafe/sbt/packager/windows/WixHelper.scala" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,24 +8,20 @@ import sbt._ | |
import sbt.Keys.{name, normalizedName, packageBin, streams} | ||
|
||
/** | ||
* == SBT Native Packager Plugin == | ||
* ==SBT Native Packager Plugin== | ||
* | ||
* This is the top level plugin for the sbt native packager. | ||
* You don't have to enable this by yourself, instead we recommend | ||
* using an archetype for this. | ||
* This is the top level plugin for the sbt native packager. You don't have to enable this by yourself, instead we | ||
* recommend using an archetype for this. | ||
* | ||
* Currently you can choose between | ||
* | ||
* <ul> | ||
* <li>JavaAppPackaging</li> | ||
* <li>JavaServerPackaging</li> | ||
* <li>AkkaAppPackging</li> | ||
* </ul> | ||
* - JavaAppPackaging | ||
* - JavaServerPackaging | ||
* - AkkaAppPackging | ||
* | ||
* == Configuration == | ||
* ==Configuration== | ||
* | ||
* The are a few settings you should set if you want to build package | ||
* no matter what format. | ||
* The are a few settings you should set if you want to build package no matter what format. | ||
* | ||
* {{{ | ||
* maintainer := "Your name <[email protected]>" | ||
|
@@ -34,10 +30,11 @@ import sbt.Keys.{name, normalizedName, packageBin, streams} | |
* | ||
* For all other general settings take a look at [[com.typesafe.sbt.packager.NativePackagerKeys]] | ||
* | ||
* @example Enable the plugin in the `build.sbt` | ||
* {{{ | ||
* @example | ||
* Enable the plugin in the `build.sbt` | ||
* {{{ | ||
* enablePlugins(SbtNativePackager) | ||
* }}} | ||
* }}} | ||
*/ | ||
object SbtNativePackager extends AutoPlugin { | ||
|
||
|
@@ -56,16 +53,16 @@ object SbtNativePackager extends AutoPlugin { | |
/** | ||
* imports all [[com.typesafe.sbt.packager.NativePackagerKeys]] and two objects: | ||
* | ||
* === NativePackagerKeys === | ||
* ===NativePackagerKeys=== | ||
* | ||
* This inclues ''all'' available keys provided by the sbt-native-packager. | ||
* Used it if a setting/task key is not in scope. | ||
* This inclues ''all'' available keys provided by the sbt-native-packager. Used it if a setting/task key is not in | ||
* scope. | ||
* | ||
* {{{ | ||
* NativePackagerKeys.notAutomaticallyImported := "cool!" | ||
* }}} | ||
* | ||
* === NativePackagerHelper === | ||
* ===NativePackagerHelper=== | ||
* | ||
* This object contains a set of helper methods for working with mappings. | ||
*/ | ||
|
@@ -106,7 +103,7 @@ object SbtNativePackager extends AutoPlugin { | |
object packageArchetype { | ||
|
||
/** | ||
* == Recommended usage == | ||
* ==Recommended usage== | ||
* | ||
* {{{ | ||
* enablePlugins(JavaAppPackaging) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.