Added Scalariform sbt plugin which formats code on each compile. Also checking in reformatted code
This commit is contained in:
parent
5949673092
commit
a7311c83e6
177 changed files with 4184 additions and 4245 deletions
|
|
@ -531,7 +531,28 @@ class AkkaParentProject(info: ProjectInfo) extends ParentProject(info) with Exec
|
|||
// Default project
|
||||
// -------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
class AkkaDefaultProject(info: ProjectInfo) extends DefaultProject(info) with McPom {
|
||||
import com.github.olim7t.sbtscalariform._
|
||||
class AkkaDefaultProject(info: ProjectInfo) extends DefaultProject(info) with McPom with ScalariformPlugin {
|
||||
|
||||
override def scalariformOptions = Seq(
|
||||
VerboseScalariform,
|
||||
AlignParameters(true),
|
||||
CompactStringConcatenation(false),
|
||||
IndentPackageBlocks(true),
|
||||
FormatXml(true),
|
||||
PreserveSpaceBeforeArguments(false),
|
||||
DoubleIndentClassDeclaration(false),
|
||||
RewriteArrowSymbols(true),
|
||||
AlignSingleLineCaseStatements(true),
|
||||
SpaceBeforeColon(false),
|
||||
PreserveDanglingCloseParenthesis(false),
|
||||
IndentSpaces(2),
|
||||
IndentLocalDefs(false)
|
||||
// MaxArrowIndent(40),
|
||||
// SpaceInsideBrackets(false),
|
||||
// SpaceInsideParentheses(false),
|
||||
//SpacesWithinPatternBinders(true)
|
||||
)
|
||||
|
||||
override def disableCrossPaths = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue