Skip to content

Commit 1122c5c

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

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/sync.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
group:
2+
# Scalafmt settings
3+
- files:
4+
- .scalafmt.conf
5+
repos: |
6+
playframework/play-soap

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

0 commit comments

Comments
 (0)