Skip to content

Commit

Permalink
Remove lint disabling for line length
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Jan 23, 2024
1 parent 8153a3d commit c16fa52
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ disabled_rules:
- function_body_length
- identifier_name
- large_tuple
- line_length
- nesting
- opening_brace
- todo
- type_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public extension RichTextViewComponent {
- Parameters:
- image: The image to paste.
- index: The index to paste at.
- moveCursorToPastedContent: Whether or not to move the cursor to the end of the pasted content, by default `false`.
- moveCursorToPastedContent: Whether or not the input
cursor should be moved to the end of the pasted content,
by default `false`.
*/
func pasteImage(
_ image: ImageRepresentable,
Expand All @@ -52,7 +54,9 @@ public extension RichTextViewComponent {
- Parameters:
- images: The images to paste.
- index: The index to paste at.
- moveCursorToPastedContent: Whether or not to move the cursor to the end of the pasted content, by default `false`.
- moveCursorToPastedContent: Whether or not the input
cursor should be moved to the end of the pasted content,
by default `false`.
*/
func pasteImages(
_ images: [ImageRepresentable],
Expand Down Expand Up @@ -85,7 +89,9 @@ public extension RichTextViewComponent {
- Parameters:
- text: The text to paste.
- index: The text index to paste at.
- moveCursorToPastedContent: Whether or not to move the cursor to the end of the pasted content, by default `false`.
- moveCursorToPastedContent: Whether or not the input
cursor should be moved to the end of the pasted content,
by default `false`.
*/
func pasteText(
_ text: String,
Expand Down
3 changes: 2 additions & 1 deletion Sources/RichTextKit/Data/RichTextDataFormat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import UniformTypeIdentifiers
can be used elsewhere.

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

Remember to configure your app for handling the UTTypes you
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ final class RichTextViewComponent_ColorTests: XCTestCase {
XCTAssertEqual(textView.richTextColor(.foreground), color)
assertEqualColor(textView.richTextAttributes[.foregroundColor])
#endif
XCTAssertNotEqual(textView.richTextAttributes(at: selectedRange)[.foregroundColor] as? ColorRepresentable, color)
let attributes = textView.richTextAttributes(at: selectedRange)
XCTAssertNotEqual(attributes[.foregroundColor] as? ColorRepresentable, color)
assertEqualColor(textView.typingAttributes[.foregroundColor])
}
}
Expand Down

0 comments on commit c16fa52

Please sign in to comment.