Skip to content

Commit 05ac8bf

Browse files
committed
Sync Scalafmt settings between all repositories
1 parent 9bd5990 commit 05ac8bf

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/sync.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ group:
3232
# playframework/play-java-angular-seed
3333
# playframework/play-scala-angular-seed
3434

35+
# Scalafmt settings
36+
- files:
37+
- .scalafmt.conf
38+
repos: |
39+
playframework/play-soap

.github/workflows/sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- sync-scalafmt # TODO: remove before merge
67
jobs:
78
sync:
89
runs-on: ubuntu-20.04

.scalafmt.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
align = true
2+
assumeStandardLibraryStripMargin = true
3+
danglingParentheses = true
4+
docstrings = JavaDoc
5+
maxColumn = 120
6+
project.excludeFilters += core/play/src/main/scala/play/core/hidden/ObjectMappings.scala # Ooohhh 😞
7+
project.git = true
8+
rewrite.rules = [ AvoidInfix, ExpandImportSelectors, RedundantParens, SortModifiers, PreferCurlyFors ]
9+
rewrite.sortModifiers.order = [ "private", "protected", "final", "sealed", "abstract", "implicit", "override", "lazy" ]
10+
spaces.inImportCurlyBraces = true # more idiomatic to include whitepsace in import x.{ yyy }
11+
trailingCommas = preserve
12+
version = 2.3.2

0 commit comments

Comments
 (0)