mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-06-16 10:34:34 +00:00
Enable blankLinesBetweenChainedFunctions by default
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user