Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoolwinter committed Jun 22, 2024
1 parent 146fd17 commit 5453867
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
excluded:
- .build

disabled_rules:
- todo
- trailing_comma
Expand All @@ -13,4 +16,4 @@ identifier_name:
excluded:
- c
- id
- vc
- vc
2 changes: 1 addition & 1 deletion Tests/CodeEditTextViewTests/LineEndingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class LineEndingTests: XCTestCase {
func makeRandomText(_ goalLineEnding: LineEnding) -> String {
(10..<Int.random(in: 20..<100)).reduce("") { partialResult, _ in
return partialResult + String(
(0..<Int.random(in: 1..<20)).map{ _ in corpus.randomElement()! }
(0..<Int.random(in: 1..<20)).map { _ in corpus.randomElement()! }
) + goalLineEnding.rawValue
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ final class TextLayoutLineStorageTests: XCTestCase {
}
}

// swiflint:disable:next function_body_length
// swiftlint:disable:next function_body_length
func test_delete() throws {
var tree = TextLineStorage<TextLine>()

Expand Down

0 comments on commit 5453867

Please sign in to comment.