Skip to content

Commit

Permalink
Preparation before linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mackoj committed Dec 14, 2019
1 parent 23d4421 commit 9a689ac
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .swift-format
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"UseTripleSlashForDocumentationComments" : true,
"ValidateDocumentationComments" : true
},
"tabWidth" : 8,
"tabWidth" : 4,
"version" : 1
}
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ build:
reformat:
swift-format -m format --configuration .swift-format -r -i Sources

lint:
swift-format -m lint --configuration .swift-format -r -i Sources

gitignore-flush:
git rm -r --cached .
git add .
Expand Down
4 changes: 1 addition & 3 deletions Sources/PlatformLookup/PlatformLookup+FindDevices.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ extension PlatformLookup {
-> String?
{
if let platform = try getAllDevices(with: deviceFilter, runtimeFilter: runtimeFilter).last {
return """
platform="iOS Simulator,name=\(platform.devices.last!.name),OS=\(platform.runtime.version)"
"""
return "iOS Simulator,name=\(platform.devices.last!.name),OS=\(platform.runtime.version)"
}
return nil
}
Expand Down
10 changes: 8 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# TODO

## P0
- [ ] Add missing tests

## P1
- [ ] Code Documentation
- [ ] Project Documentation
- [ ] Dr String
- [ ] Developer Jouney
- [ ] Developer Jouney (comment participer au projet)

## P2
- [ ] Code of conduct
- [ ] PR Boiler plate
- [ ] Auto review ?
- [ ] Dr String
2 changes: 1 addition & 1 deletion Tests/PlatformLookupTests/PlatformLookupTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class PlatformLookupTests: XCTestCase {
}
func test_findADeviceForLastOSVersion_string() {
let platform: String? = try? PlatformLookup.findADeviceForLastOSVersion()
XCTAssertEqual(platform, "platform=\"iOS Simulator,name=iPhone 11 Pro Max,OS=13.2\"")
XCTAssertEqual(platform, "iOS Simulator,name=iPhone 11 Pro Max,OS=13.2")
}
func test_findADeviceForLastOSVersion_platform() {
let platform: Platform? = try? PlatformLookup.findADeviceForLastOSVersion()
Expand Down

0 comments on commit 9a689ac

Please sign in to comment.