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 23, 2022
1 parent a513b5a commit 3052d5c
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 @@ -3365,3 +3365,21 @@ enum SerializedField extends jl.Enum[SerializedField] {
ORIGIN_COMMENTS, ORIGIN_NULL_URL, ORIGIN_NULL_COMMENTS, ORIGIN_RESOURCE,
ORIGIN_NULL_RESOURCE
}
<<< #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 @@ -3205,3 +3205,21 @@ enum SerializedField extends jl.Enum[SerializedField] {
ORIGIN_COMMENTS, ORIGIN_NULL_URL, ORIGIN_NULL_COMMENTS, ORIGIN_RESOURCE,
ORIGIN_NULL_RESOURCE
}
<<< #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 @@ -3357,3 +3357,21 @@ enum SerializedField extends jl.Enum[SerializedField] {
ORIGIN_COMMENTS, ORIGIN_NULL_URL, ORIGIN_NULL_COMMENTS, ORIGIN_RESOURCE,
ORIGIN_NULL_RESOURCE
}
<<< #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 @@ -3457,3 +3457,21 @@ enum SerializedField extends jl.Enum[SerializedField] {
ORIGIN_RESOURCE,
ORIGIN_NULL_RESOURCE
}
<<< #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 3052d5c

Please sign in to comment.