-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Scalafmt to the latest version to enable Scala 3 formatting (#230
) * Updates for scalafmt to support Scala 3 * Try and use snapshot * Remove extra parens * Latest scalafmt version * Update param T to be more Scala like * Use the correct snapshot version * Add link scripts and update to scalafmt 3.3.2 * Update format * Create deliberate wraps for better formatting * Format rebase code
- Loading branch information
Showing
140 changed files
with
3,009 additions
and
2,861 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,11 @@ | ||
name: Check Lint | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
jobs: | ||
check-lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: ./scripts/check-lint.sh |
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,7 +1,7 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [ main ] | ||
pull_request: | ||
jobs: | ||
build: | ||
|
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 |
---|---|---|
|
@@ -12,3 +12,7 @@ target/ | |
|
||
# vscode | ||
/.vscode/ | ||
|
||
# scripts generated | ||
/scripts/.coursier | ||
/scripts/.scalafmt* |
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,15 +1,24 @@ | ||
version = 2.4.2 | ||
style = defaultWithAlign | ||
docstrings = JavaDoc | ||
# Test upgrades: $ scripts/scalafmt --test 2> diff.txt | ||
version = 3.3.2 | ||
runner.dialect = scala213source3 | ||
preset = default | ||
|
||
# JavaDoc style (ported from Java) | ||
docstrings.style = Asterisk | ||
assumeStandardLibraryStripMargin = true | ||
project.git = true | ||
# changed 1.6 or after | ||
align.openParenCallSite = true | ||
align.openParenDefnSite = true | ||
# avoid wrapping parens on new line | ||
danglingParentheses.defnSite = false | ||
danglingParentheses.callSite = false | ||
# manually exclude files to format. | ||
project.excludeFilters = [ | ||
sharedScala3 | ||
] | ||
|
||
# This creates less of a diff but is not default | ||
# but is more aligned with Scala.js syntax. | ||
newlines.beforeCurlyLambdaParams = multilineWithCaseOnly | ||
|
||
# Keep control sites more streamlined | ||
indent.ctrlSite = 4 | ||
danglingParentheses.ctrlSite = false | ||
|
||
# allow dialect for Scala 3 | ||
fileOverride { | ||
"glob:**/scala-3/**.scala" { | ||
runner.dialect = scala3 | ||
} | ||
} |
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
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.