-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from alejandrohdezma/update/scalafmt
Update scalafmt to 3.3.3
- Loading branch information
Showing
30 changed files
with
148 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Don't edit this file! | ||
# It is automatically updated after every release of https://github.com/alejandrohdezma/sbt-ci | ||
# If you want to suggest a change, please open a PR or issue in that repository | ||
ko_fi: alejandrohdezma |
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
9 changes: 9 additions & 0 deletions
9
...bt-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala211/build.sbt
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ThisBuild / scalaVersion := "2.11.12" | ||
|
||
TaskKey[Unit]("checkScalafmtConfFile") := { | ||
val expected = sys | ||
.props("scalafmt.conf.content") | ||
.replace("runner.dialect = scala212", "runner.dialect = scala211") | ||
|
||
assert(IO.read(file(".scalafmt.conf")) == expected) | ||
} |
1 change: 1 addition & 0 deletions
1
...aults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala211/project/build.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.6.1 |
2 changes: 2 additions & 0 deletions
2
...t-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala211/project/plugins.sbt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % sys.props("plugin.version")) | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") |
3 changes: 3 additions & 0 deletions
3
...les/sbt-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala211/test
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this test ensures the .scalafmt.conf is generated with the correct dialect | ||
> scalafmt | ||
> checkScalafmtConfFile |
9 changes: 9 additions & 0 deletions
9
...bt-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala212/build.sbt
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ThisBuild / scalaVersion := "2.12.15" | ||
|
||
TaskKey[Unit]("checkScalafmtConfFile") := { | ||
val expected = sys | ||
.props("scalafmt.conf.content") | ||
.replace("runner.dialect = scala212", "runner.dialect = scala212") | ||
|
||
assert(IO.read(file(".scalafmt.conf")) == expected) | ||
} |
1 change: 1 addition & 0 deletions
1
...aults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala212/project/build.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.6.1 |
2 changes: 2 additions & 0 deletions
2
...t-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala212/project/plugins.sbt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % sys.props("plugin.version")) | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") |
3 changes: 3 additions & 0 deletions
3
...les/sbt-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala212/test
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this test ensures the .scalafmt.conf is generated with the correct dialect | ||
> scalafmt | ||
> checkScalafmtConfFile |
10 changes: 10 additions & 0 deletions
10
...afmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala212source3/build.sbt
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ThisBuild / scalaVersion := "2.12.15" | ||
ThisBuild / scalacOptions += "-Xsource:3" | ||
|
||
TaskKey[Unit]("checkScalafmtConfFile") := { | ||
val expected = sys | ||
.props("scalafmt.conf.content") | ||
.replace("runner.dialect = scala212", "runner.dialect = scala212source3") | ||
|
||
assert(IO.read(file(".scalafmt.conf")) == expected) | ||
} |
1 change: 1 addition & 0 deletions
1
...rc/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala212source3/project/build.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.6.1 |
2 changes: 2 additions & 0 deletions
2
...lts/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala212source3/project/plugins.sbt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % sys.props("plugin.version")) | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") |
3 changes: 3 additions & 0 deletions
3
...-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala212source3/test
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this test ensures the .scalafmt.conf is generated with the correct dialect | ||
> scalafmt | ||
> checkScalafmtConfFile |
9 changes: 9 additions & 0 deletions
9
...bt-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala213/build.sbt
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ThisBuild / scalaVersion := "2.13.8" | ||
|
||
TaskKey[Unit]("checkScalafmtConfFile") := { | ||
val expected = sys | ||
.props("scalafmt.conf.content") | ||
.replace("runner.dialect = scala212", "runner.dialect = scala213") | ||
|
||
assert(IO.read(file(".scalafmt.conf")) == expected) | ||
} |
1 change: 1 addition & 0 deletions
1
...aults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala213/project/build.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.6.1 |
2 changes: 2 additions & 0 deletions
2
...t-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala213/project/plugins.sbt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % sys.props("plugin.version")) | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") |
3 changes: 3 additions & 0 deletions
3
...les/sbt-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala213/test
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this test ensures the .scalafmt.conf is generated with the correct dialect | ||
> scalafmt | ||
> checkScalafmtConfFile |
10 changes: 10 additions & 0 deletions
10
...afmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala213source3/build.sbt
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ThisBuild / scalaVersion := "2.13.8" | ||
ThisBuild / scalacOptions += "-Xsource:3" | ||
|
||
TaskKey[Unit]("checkScalafmtConfFile") := { | ||
val expected = sys | ||
.props("scalafmt.conf.content") | ||
.replace("runner.dialect = scala212", "runner.dialect = scala213source3") | ||
|
||
assert(IO.read(file(".scalafmt.conf")) == expected) | ||
} |
1 change: 1 addition & 0 deletions
1
...rc/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala213source3/project/build.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.6.1 |
2 changes: 2 additions & 0 deletions
2
...lts/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala213source3/project/plugins.sbt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % sys.props("plugin.version")) | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") |
3 changes: 3 additions & 0 deletions
3
...-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala213source3/test
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this test ensures the .scalafmt.conf is generated with the correct dialect | ||
> scalafmt | ||
> checkScalafmtConfFile |
9 changes: 9 additions & 0 deletions
9
.../sbt-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala3/build.sbt
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ThisBuild / scalaVersion := "3.1.0" | ||
|
||
TaskKey[Unit]("checkScalafmtConfFile") := { | ||
val expected = sys | ||
.props("scalafmt.conf.content") | ||
.replace("runner.dialect = scala212", "runner.dialect = scala3") | ||
|
||
assert(IO.read(file(".scalafmt.conf")) == expected) | ||
} |
1 change: 1 addition & 0 deletions
1
...efaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala3/project/build.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.6.1 |
2 changes: 2 additions & 0 deletions
2
...fmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala3/project/plugins.sbt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafmt-defaults" % sys.props("plugin.version")) | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") |
3 changes: 3 additions & 0 deletions
3
modules/sbt-scalafmt-defaults/src/sbt-test/sbt-scalafmt-defaults/runner-dialect-scala3/test
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# this test ensures the .scalafmt.conf is generated with the correct dialect | ||
> scalafmt | ||
> checkScalafmtConfFile |