mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
🔧 Enable linting tests, disable some rules
This commit is contained in:
parent
8d6df4c6a5
commit
a9553ae4d0
3 changed files with 12 additions and 9 deletions
|
@ -8,4 +8,3 @@
|
|||
excluded:
|
||||
- Carthage
|
||||
- docs
|
||||
- MasKitTests
|
||||
|
|
10
MasKitTests/.swiftlint.yml
Normal file
10
MasKitTests/.swiftlint.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
#
|
||||
# .swiftlint.yml
|
||||
# MasKitTests
|
||||
#
|
||||
# https://github.com/realm/SwiftLint#configuration
|
||||
#
|
||||
---
|
||||
disabled_rules:
|
||||
- force_cast
|
||||
- function_body_length
|
|
@ -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))
|
||||
//}
|
||||
|
|
Loading…
Reference in a new issue