-
Notifications
You must be signed in to change notification settings - Fork 252
Update scalafmt configuration for Scala 3 #679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,16 @@ | ||
| version = 3.9.4 | ||
| runner.dialect = scala213source3 | ||
| maxColumn = 180 | ||
| project.layout = StandardConvention | ||
| runner.dialect = scala3 | ||
| maxColumn = 100 | ||
| style = defaultWithAlign | ||
| optIn.breaksInsideChains = true | ||
| docstrings.blankFirstLine = yes | ||
| rewrite.scala3.convertToNewSyntax = true | ||
| rewrite.scala3.removeOptionalBraces = yes | ||
| rewrite.scala3.insertEndMarkerMinLines = 30 | ||
| # Add a new line before case class | ||
| newlines.topLevelStatementBlankLines = [ | ||
| { | ||
| blanks { after = 1 } | ||
| } | ||
| ] | ||
|
Comment on lines
+11
to
+15
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment on line 10, This broad rule could lead to undesirable formatting, such as extra newlines after the last import statement or at the end of a file. To align the rule with the comment's intent, it should be made more specific to target only |
||
| newlines.source = unfold | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The specified scalafmt version
3.9.4does not appear to be a valid published version. The latest stable version of scalafmt is3.8.1. Using a non-existent version will cause the build to fail whensbt-scalafmtattempts to download the runner. Please update this to a valid, published version.