Enable SwiftLint rule 'multiline_function_chains' and fix all violations
This commit is contained in:
parent
c87f4e9792
commit
776c813f94
3 changed files with 27 additions and 26 deletions
|
|
@ -34,7 +34,8 @@ class UICodeHighlightingLabel: UILocalizedLabel {
|
|||
return NSAttributedString(string: line, attributes: UICodeHighlightingLabel.CODE_ATTRIBUTES)
|
||||
}
|
||||
return NSAttributedString(string: line)
|
||||
}.reduce(into: NSMutableAttributedString(string: "")) {
|
||||
}
|
||||
.reduce(into: NSMutableAttributedString(string: "")) {
|
||||
$0.append($1)
|
||||
$0.append(UICodeHighlightingLabel.ATTRIBUTED_NEWLINE)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue