Skip to content

Commit dc0b506

Browse files
committed
Sync Scalafmt settings between all repositories
1 parent 5cfcbcf commit dc0b506

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.github/sync.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
playframework/play-soap:
2+
- .scalafmt.conf

.github/workflows/sync.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Sync Files
2+
on:
3+
push:
4+
branches:
5+
- sync-scalafmt # TODO: change to `main` before merge
6+
jobs:
7+
sync:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
- name: Run GitHub File Sync
13+
uses: BetaHuhn/repo-file-sync-action@v1
14+
with:
15+
GH_PAT: ${{ secrets.GH_REPO_TOKEN }}

.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)