🔧 Enable linting tests, disable some rules

This commit is contained in:
Ben Chatelain 2020-05-14 21:08:38 -06:00
parent 8d6df4c6a5
commit a9553ae4d0
3 changed files with 12 additions and 9 deletions

View file

@ -8,4 +8,3 @@
excluded:
- Carthage
- docs
- MasKitTests

View file

@ -0,0 +1,10 @@
#
# .swiftlint.yml
# MasKitTests
#
# https://github.com/realm/SwiftLint#configuration
#
---
disabled_rules:
- force_cast
- function_body_length

View file

@ -48,15 +48,9 @@ struct SoftwareMapMock: SoftwareMap {
}
func product(for bundleIdentifier: String) -> SoftwareProduct? {
for product in products {
if product.bundleIdentifier == bundleIdentifier {
return product
}
for product in products where product.bundleIdentifier == bundleIdentifier {
return product
}
return nil
}
}
//public func == (lhs: Expectation<[SoftwareProduct]>, rhs: [SoftwareProduct]) {
// lhs.to(beCloseTo(rhs))
//}