Skip to content

Commit c16fa52

Browse files
committed
Remove lint disabling for line length
1 parent 8153a3d commit c16fa52

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ disabled_rules:
44
- function_body_length
55
- identifier_name
66
- large_tuple
7-
- line_length
7+
- nesting
88
- opening_brace
99
- todo
1010
- type_name

Sources/RichTextKit/Component/RichTextViewComponent+Pasting.swift

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public extension RichTextViewComponent {
2929
- Parameters:
3030
- image: The image to paste.
3131
- index: The index to paste at.
32-
- moveCursorToPastedContent: Whether or not to move the cursor to the end of the pasted content, by default `false`.
32+
- moveCursorToPastedContent: Whether or not the input
33+
cursor should be moved to the end of the pasted content,
34+
by default `false`.
3335
*/
3436
func pasteImage(
3537
_ image: ImageRepresentable,
@@ -52,7 +54,9 @@ public extension RichTextViewComponent {
5254
- Parameters:
5355
- images: The images to paste.
5456
- index: The index to paste at.
55-
- moveCursorToPastedContent: Whether or not to move the cursor to the end of the pasted content, by default `false`.
57+
- moveCursorToPastedContent: Whether or not the input
58+
cursor should be moved to the end of the pasted content,
59+
by default `false`.
5660
*/
5761
func pasteImages(
5862
_ images: [ImageRepresentable],
@@ -85,7 +89,9 @@ public extension RichTextViewComponent {
8589
- Parameters:
8690
- text: The text to paste.
8791
- index: The text index to paste at.
88-
- moveCursorToPastedContent: Whether or not to move the cursor to the end of the pasted content, by default `false`.
92+
- moveCursorToPastedContent: Whether or not the input
93+
cursor should be moved to the end of the pasted content,
94+
by default `false`.
8995
*/
9096
func pasteText(
9197
_ text: String,

Sources/RichTextKit/Data/RichTextDataFormat.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import UniformTypeIdentifiers
2020
can be used elsewhere.
2121

2222
``archivedData`` uses an `rtk` file extension, as well as a
23-
`UTType.archivedData` uniform type. You can create a custom ``vendorArchivedData(id:fileExtension:fileFormatText:uniformType:)``
23+
`UTType.archivedData` uniform type. You can create a custom
24+
``vendorArchivedData(id:fileExtension:fileFormatText:uniformType:)``
2425
value to specify a custom data format.
2526

2627
Remember to configure your app for handling the UTTypes you

Tests/RichTextKitTests/RichTextViewRepresentable+ColorTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ final class RichTextViewComponent_ColorTests: XCTestCase {
8787
XCTAssertEqual(textView.richTextColor(.foreground), color)
8888
assertEqualColor(textView.richTextAttributes[.foregroundColor])
8989
#endif
90-
XCTAssertNotEqual(textView.richTextAttributes(at: selectedRange)[.foregroundColor] as? ColorRepresentable, color)
90+
let attributes = textView.richTextAttributes(at: selectedRange)
91+
XCTAssertNotEqual(attributes[.foregroundColor] as? ColorRepresentable, color)
9192
assertEqualColor(textView.typingAttributes[.foregroundColor])
9293
}
9394
}

0 commit comments

Comments
 (0)