Skip to content

Commit

Permalink
Merge pull request #31 from mdedetrich/update-scalafmt
Browse files Browse the repository at this point in the history
Update scalafmt
  • Loading branch information
raboof authored Apr 15, 2022
2 parents d4e051f + 9b3f7c5 commit fa6dc01
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: Check project is formatted
uses: jrouly/scalafmt-native-action@v1
with:
version: '3.4.3'
version: '3.5.1'
10 changes: 8 additions & 2 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
version = 3.4.3
version = 3.5.1
runner.dialect = scala213
maxColumn = 120
docstrings.style = Asterisk
assumeStandardLibraryStripMargin = true
rewrite.rules = [RedundantBraces, RedundantParens, SortImports, SortModifiers]
indentOperator.exemptScope = all
align.tokens = [
align.tokens."+" = [
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = ":=", owner = "Term.ApplyInfix"},
{
code = "=>"
owners = [{
regex = "Case"
}]
},
"="
]
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object ParadoxDependenciesPlugin extends AutoPlugin {
new DependenciesDirective(paradoxDependenciesShowLicenses.value)(projectId =>
trees.get(projectId) match {
case Some(deps) => deps
case _ => throw new Error(s"Could not retrieve dependency information for project [$projectId]")
case _ => throw new Error(s"Could not retrieve dependency information for project [$projectId]")
}
)
}
Expand Down

0 comments on commit fa6dc01

Please sign in to comment.