Enable blankLinesBetweenChainedFunctions by default

This commit is contained in:
Nick Lockwood
2024-01-08 17:28:34 +00:00
parent 82f8b9734b
commit 5b7f2bb2a2
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -8,6 +8,7 @@
* [blankLinesAroundMark](#blankLinesAroundMark)
* [blankLinesAtEndOfScope](#blankLinesAtEndOfScope)
* [blankLinesAtStartOfScope](#blankLinesAtStartOfScope)
* [blankLinesBetweenChainedFunctions](#blankLinesBetweenChainedFunctions)
* [blankLinesBetweenScopes](#blankLinesBetweenScopes)
* [braces](#braces)
* [conditionalAssignment](#conditionalAssignment)
@@ -89,7 +90,6 @@
# Opt-in Rules (disabled by default)
* [acronyms](#acronyms)
* [blankLinesBetweenChainedFunctions](#blankLinesBetweenChainedFunctions)
* [blankLinesBetweenImports](#blankLinesBetweenImports)
* [blockComments](#blockComments)
* [docComments](#docComments)
+1 -2
View File
@@ -1144,8 +1144,7 @@ public struct _FormatRules {
public let blankLinesBetweenChainedFunctions = FormatRule(
help: """
Remove blank lines between chained functions but keep the linebreaks.
""",
disabledByDefault: true
"""
) { formatter in
formatter.forEach(.operator(".", .infix)) { i, _ in
let endOfLine = formatter.endOfLine(at: i)