Skip to content

Commit

Permalink
Sync Scalafmt settings between all repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
ihostage committed May 18, 2022
1 parent 5cfcbcf commit 7f6ee1f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# More details in https://github.com/marketplace/actions/repo-file-sync-action
group:
# Scalafmt settings
- files:
- .scalafmt.conf
repos: |
playframework/play-soap
15 changes: 15 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Sync Files
on:
push:
branches:
- sync-scalafmt # TODO: change to `main` before merge
jobs:
sync:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run GitHub File Sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.GH_REPO_TOKEN }}
12 changes: 12 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
align = true
assumeStandardLibraryStripMargin = true
danglingParentheses = true
docstrings = JavaDoc
maxColumn = 120
project.excludeFilters += core/play/src/main/scala/play/core/hidden/ObjectMappings.scala # Ooohhh 😞
project.git = true
rewrite.rules = [ AvoidInfix, ExpandImportSelectors, RedundantParens, SortModifiers, PreferCurlyFors ]
rewrite.sortModifiers.order = [ "private", "protected", "final", "sealed", "abstract", "implicit", "override", "lazy" ]
spaces.inImportCurlyBraces = true # more idiomatic to include whitepsace in import x.{ yyy }
trailingCommas = preserve
version = 2.3.2

0 comments on commit 7f6ee1f

Please sign in to comment.