-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Scala Native and cleanup for Scala 3 (#70)
* Update version * Update scalafmt and add script to workflow * Update Scala Native to 0.4.3 and Scala 3 * Add semver strategy * Update docs prior to format * Format with new scalafmt * Update readme for release
- Loading branch information
Showing
10 changed files
with
1,754 additions
and
1,407 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 |
---|---|---|
|
@@ -8,3 +8,10 @@ | |
|
||
# vscode | ||
/.vscode/ | ||
|
||
# IntelliJ | ||
/.idea/ | ||
|
||
# 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,11 +1,27 @@ | ||
version = 3.3.1 | ||
style = defaultWithAlign | ||
docstrings = JavaDoc | ||
# Test upgrades: $ scripts/scalafmt --test 2> diff.txt | ||
version = 3.4.0 | ||
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 | ||
|
||
# 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 | ||
|
||
# Default is not recommended | ||
indentOperator.exemptScope = aloneEnclosed | ||
|
||
# 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
Oops, something went wrong.