Skip to content

Commit

Permalink
Add tests with indent of type infix definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Mar 24, 2022
1 parent aed3800 commit c67b0db
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scalafmt-tests/src/test/resources/scala3/OptionalBraces.stat
Original file line number Diff line number Diff line change
Expand Up @@ -3371,3 +3371,21 @@ for { foobar <- LongClassName(database).longMethodName() } yield doSomething(foo
for { foobar <- LongClassName(database).longMethodName() } yield doSomething(
foobar
)
<<< #3153
maxColumn = 14
indentOperator.excludeRegex = "^(&|\\||&&|\\|\\|)$"
indentOperator.exemptScope = aloneArgOrBody
===
type T =
Byte |
Short |
Int |
Long |
Double
>>>
type T =
Byte |
Short |
Int |
Long |
Double
18 changes: 18 additions & 0 deletions scalafmt-tests/src/test/resources/scala3/OptionalBraces_fold.stat
Original file line number Diff line number Diff line change
Expand Up @@ -3211,3 +3211,21 @@ for { foobar <- LongClassName(database).longMethodName() } yield doSomething(foo
for {
foobar <- LongClassName(database).longMethodName()
} yield doSomething(foobar)
<<< #3153
maxColumn = 14
indentOperator.excludeRegex = "^(&|\\||&&|\\|\\|)$"
indentOperator.exemptScope = aloneArgOrBody
===
type T =
Byte |
Short |
Int |
Long |
Double
>>>
type T =
Byte |
Short |
Int |
Long |
Double
18 changes: 18 additions & 0 deletions scalafmt-tests/src/test/resources/scala3/OptionalBraces_keep.stat
Original file line number Diff line number Diff line change
Expand Up @@ -3363,3 +3363,21 @@ for { foobar <- LongClassName(database).longMethodName() } yield doSomething(foo
for { foobar <- LongClassName(database).longMethodName() } yield doSomething(
foobar
)
<<< #3153
maxColumn = 14
indentOperator.excludeRegex = "^(&|\\||&&|\\|\\|)$"
indentOperator.exemptScope = aloneArgOrBody
===
type T =
Byte |
Short |
Int |
Long |
Double
>>>
type T =
Byte |
Short |
Int |
Long |
Double
Original file line number Diff line number Diff line change
Expand Up @@ -3463,3 +3463,21 @@ for { foobar <- LongClassName(database).longMethodName() } yield doSomething(foo
for {
foobar <- LongClassName(database).longMethodName()
} yield doSomething(foobar)
<<< #3153
maxColumn = 14
indentOperator.excludeRegex = "^(&|\\||&&|\\|\\|)$"
indentOperator.exemptScope = aloneArgOrBody
===
type T =
Byte |
Short |
Int |
Long |
Double
>>>
type T =
Byte |
Short |
Int |
Long |
Double

0 comments on commit c67b0db

Please sign in to comment.