Skip to content

Commit

Permalink
ci: run swiftlint with strict flag (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasl authored Apr 16, 2024
1 parent b5ba3e0 commit 8f253ce
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 364 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: GitHub Action for SwiftLint
uses: norio-nomura/[email protected]
with:
args: --config .swiftlint.yml
args: --strict --config .swiftlint.yml
123 changes: 0 additions & 123 deletions .swiftpm/xcode/xcshareddata/xcschemes/Confidence-Package.xcscheme

This file was deleted.

66 changes: 0 additions & 66 deletions .swiftpm/xcode/xcshareddata/xcschemes/Confidence.xcscheme

This file was deleted.

92 changes: 0 additions & 92 deletions .swiftpm/xcode/xcshareddata/xcschemes/ConfidenceProvider.xcscheme

This file was deleted.

19 changes: 0 additions & 19 deletions ConfidenceDemoApp/ConfidenceDemoAppTests/ConfidenceDemoTests.swift

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions Sources/Common/Backport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import Foundation
extension URL {
public struct Backport {
var base: URL

init(base: URL) {
self.base = base
}
}

public var backport: Backport {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -976,3 +976,4 @@ final class DispatchQueueFakeSlow: DispatchQueueType {
}
}
}
// swiftlint:enable type_body_length
6 changes: 4 additions & 2 deletions Tests/ConfidenceProviderTests/EventUploaderMock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ final class EventStorageMock: EventStorage {
}

func eventsFrom(id: String) throws -> [ConfidenceEvent] {
// swiftlint:disable:next force_unwrapping
return batches[id]!
guard let events = batches[id] else {
fatalError("id \(id) not found in batches")
}
return events
}

func remove(id: String) throws {
Expand Down
Loading

0 comments on commit 8f253ce

Please sign in to comment.