-
-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scala code formatter as an SBT plugin and an IntelliJ plugin (#987)
Add scala linter and plugins to format scala code
- Loading branch information
Showing
256 changed files
with
1,865 additions
and
1,512 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,14 @@ | ||
// https://scalameta.org/scalafmt/docs/configuration.html | ||
|
||
maxColumn = 120 | ||
binPackImportSelectors = true | ||
newlines.alwaysBeforeCurlyBraceLambdaParams = true | ||
optIn.breakChainOnFirstMethodDot = false | ||
continuationIndent.extendSite = 2 | ||
align.tokens = [ | ||
{code = "%", owner = "Term.ApplyInfix"}, | ||
{code = "%%", owner = "Term.ApplyInfix"} | ||
] | ||
align.openParenCallSite = false | ||
align.openParenDefnSite = false | ||
danglingParentheses = true |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1") |
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
2 changes: 1 addition & 1 deletion
2
modules/authentication/server-scala/src/main/scala/errors/Unauthenticated.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package errors | ||
|
||
case class Unauthenticated(msg: String = "") extends Error(msg) | ||
case class Unauthenticated(msg: String = "") extends Error(msg) |
2 changes: 1 addition & 1 deletion
2
modules/authentication/server-scala/src/main/scala/errors/Unauthorized.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package errors | ||
|
||
case class Unauthorized(msg: String = "") extends Error(msg) | ||
case class Unauthorized(msg: String = "") extends Error(msg) |
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.