Skip to content

Commit

Permalink
scalafmt: set project.git = true to respect gitignore settings (#2932)
Browse files Browse the repository at this point in the history
This ensures that if someone is using `scalafmt` via the CLI that it
correctly knows to ignore Scala files that are also ignored via git.
Without this locally when I used `scalafmt` from the command line I got
a ton of undesired changes.

Pull request: #2932
---------

Co-authored-by: Tobias Roeser <[email protected]>
  • Loading branch information
ckipp01 and lefou authored Dec 22, 2023
1 parent 9f85454 commit 978412d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
version = "3.7.10"

align.preset = none
align.openParenCallSite = false
align.preset = none
align.stripMargin = true

assumeStandardLibraryStripMargin = true

continuationIndent.callSite = 2
continuationIndent.defnSite = 4

docstrings.style = Asterisk
docstrings.oneline = keep
docstrings.style = Asterisk
docstrings.wrap = no

maxColumn = 100

newlines.source = keep

project.git = true

runner.dialect = scala213

0 comments on commit 978412d

Please sign in to comment.