-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move core tests to tests module * Remove unused sbt-pack * Move cli/test to tests/test * Tiny cleanup in build.sbt * Move src to shared/src * Abstract over config backend. - Use metaconfig-hocon on JS - Use metaconfig-typesafe-config on JVM The first unit test passes on JS! * Format :v * Fix ci-slow command * Add a few more JS unit tests. Let's wait for scalameta/scalameta#812 to get fixed so we can run the full test suite in Scala.js * Skip CI_PUBLISH for ci-sbt-scalafmt * Move all the files! This commit reorganizes the top-level directories to follow a consistent naming convention: scalafmt-MODULE. I'm doing this in this PR because the files have already moved into `shared/` directories so URLs to previous files will get lost anyways. I like the consistent naming scheme because it feels easier to get an overview of the project. * Move scalafmt-readme back to readme/ * Update .scalafmt.conf * Fix ci-sbt-scalafmt command
- Loading branch information
Showing
296 changed files
with
171 additions
and
79 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
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 +1 @@ | ||
eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgIyBGZXRjaCBmb2xkZXJzIGZyb20gZGlzdHJpYnV0ZWQgY2FjaGUKICBzZnRwX2NhY2hlX3Jlc3RvcmU6CiAgICBpbWFnZTogcGx1Z2lucy9zZnRwLWNhY2hlCiAgICByZXN0b3JlOiB0cnVlCiAgICBtb3VudDoKICAgICAgLSAvZHJvbmUvLml2eTIvY2FjaGUKICAgICAgLSAvZHJvbmUvLmNvdXJzaWVyLWNhY2hlCiAgICAgIC0gL2Ryb25lLy5zYnQKICAgICAgLSAvZHJvbmUvLmdpdAogICAgd2hlbjoKICAgICAgZXZlbnQ6IFtwdXNoLCBwdWxsX3JlcX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2hlX3JlYnVpbGQ6CiAgICBpbWFnZTogcGx1Z2lucy9zZnRwLWNhY2hlCiAgICByZWJ1aWxkOiB0cnVlCiAgICBtb3VudDoKICAgICAgLSAvZHJvbmUvLml2eTIvY2FjaGUKICAgICAgLSAvZHJvbmUvLmNvdXJzaWVyLWNhY2hlCiAgICAgIC0gL2Ryb25lLy5zYnQKICAgICAgLSAvZHJvbmUvLmdpdAoKbWF0cml4OgogIGluY2x1ZGU6CiAgICAtIENJX1RFU1Q6IGNpLWZhc3QKICAgICAgQ0lfU0NBTEFfVkVSU0lPTjogMi4xMS4xMQogICAgICBDSV9QVUJMSVNIOiB0cnVlCiAgICAtIENJX1RFU1Q6IGNpLWZhc3QKICAgICAgQ0lfU0NBTEFfVkVSU0lPTjogMi4xMi4yCiAgICAgIENJX1BVQkxJU0g6IHRydWUKICAgIC0gQ0lfVEVTVDogY2ktc2J0LXNjYWxhZm10CiAgICAgIENJX1NDQUxBX1ZFUlNJT046IDIuMTIuMgogICAgLSBDSV9URVNUOiBjaS1zbG93CiAgICAgIENJX1NDQUxBX1ZFUlNJT046IDIuMTEuMTEKICAgIC0gQ0lfVEVTVDogY2ktc2xvdwogICAgICBDSV9TQ0FMQV9WRVJTSU9OOiAyLjEyLjIKCg.PHp9BifCwMfM-7icmXekHjCFQ2ruZY4qBrn_GziMZIY |
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 |
---|---|---|
|
@@ -23,6 +23,8 @@ project/plugins/project/ | |
.scala_dependencies | ||
.worksheet | ||
.idea | ||
.idea.bak/ | ||
intellij/out | ||
|
||
|
||
*~ |
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 |
---|---|---|
@@ -1,18 +1,22 @@ | ||
import sbt._ | ||
import sbt.Keys._ | ||
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ | ||
// scalafmt: { maxColumn = 120, style = defaultWithAlign } | ||
|
||
object Dependencies { | ||
val metaconfigV = "0.3.0" | ||
val metaconfigV = "0.3.2" | ||
val scalametaV = "1.7.0" | ||
val paradiseV = "3.0.0-M8" | ||
val scalatestV = "3.0.1" | ||
val coursier = "1.0.0-M15-5" | ||
|
||
val paradise = "org.scalameta" % "paradise" % paradiseV cross CrossVersion.full | ||
val scalameta = "org.scalameta" %% "scalameta" % scalametaV | ||
val scalametaTestkit = "org.scalameta" %% "testkit" % scalametaV | ||
val scalatest = "org.scalatest" %% "scalatest" % scalatestV | ||
val metaconfig = "com.geirsson" %% "metaconfig-typesafe-config" % metaconfigV | ||
val scalariform = "org.scalariform" %% "scalariform" % "0.1.8" | ||
val paradise = "org.scalameta" % "paradise" % paradiseV cross CrossVersion.full | ||
val scalametaTestkit = "org.scalameta" %% "testkit" % scalametaV | ||
val scalariform = "org.scalariform" %% "scalariform" % "0.1.8" | ||
|
||
val scalatest = Def.setting("org.scalatest" %%% "scalatest" % scalatestV) | ||
val scalameta = Def.setting("org.scalameta" %%% "scalameta" % scalametaV) | ||
val metaconfig = Def.setting("com.geirsson" %%% "metaconfig-core" % metaconfigV) | ||
val metaconfigTypesafe = Def.setting("com.geirsson" %%% "metaconfig-typesafe-config" % metaconfigV) | ||
val metaconfigHocon = Def.setting("com.geirsson" %%% "metaconfig-hocon" % metaconfigV) | ||
} |
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
5 changes: 5 additions & 0 deletions
5
scalafmt-core/js/src/main/scala/org/scalafmt/config/PlatformConfig.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.scalafmt.config | ||
|
||
object PlatformConfig { | ||
implicit val parser = metaconfig.hocon.hoconMetaconfigParser | ||
} |
6 changes: 6 additions & 0 deletions
6
scalafmt-core/jvm/src/main/scala/org/scalafmt/config/PlatformConfig.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.scalafmt.config | ||
|
||
object PlatformConfig { | ||
implicit val parser = | ||
metaconfig.typesafeconfig.typesafeConfigMetaconfigParser | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.