Skip to content

Commit cf56cb0

Browse files
committed
Set up Scala code formatting
1 parent 4c47266 commit cf56cb0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ subprojects {
9898
java {
9999
googleJavaFormat()
100100
}
101+
scala {
102+
scalafmt('2.6.3').configFile(rootProject.file('scalafmt.conf'))
103+
}
101104
}
102105
tasks.check.dependsOn spotlessCheck
103106
}

scalafmt.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trailingCommas = multiple
2+
rewrite.rules = [ExpandImportSelectors, SortModifiers]
3+
newlines.avoidForSimpleOverflow = [tooLong]

0 commit comments

Comments
 (0)