-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SwiftFormat to the project. #129
Conversation
Changes in 129 (2022-07-06)✨ Features
🙌 Improvements
🐛 Bugfixes
🧱 Build
Others
📱 Scan the QR code below to install the build for this PR. If you can't scan the QR code you can install the build via this link: https://i.diawi.com/NUwDSY |
c961339
to
70faaeb
Compare
Generated by 🚫 Danger Swift against 22f2591 |
8ade9ac
to
70aaf9c
Compare
ElementX/Sources/Services/SessionVerification/MockSessionVerificationControllerProxy.swift
Outdated
Show resolved
Hide resolved
ElementX/Sources/AppDelegate.swift
Outdated
@@ -15,8 +15,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | |||
|
|||
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { | |||
|
|||
// fixme: Use `Bundle.elementLanguage = ".."` when we have the functionality | |||
// use `en` as fallback language | |||
// FIXME: Use `Bundle.elementLanguage = ".."` when we have the functionality |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could remove this at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your comments, rule wise they all seem like false positives to me, have fixed them.
ElementX/Sources/Services/SessionVerification/MockSessionVerificationControllerProxy.swift
Outdated
Show resolved
Hide resolved
ElementX/Sources/AppDelegate.swift
Outdated
@@ -15,8 +15,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | |||
|
|||
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { | |||
|
|||
// fixme: Use `Bundle.elementLanguage = ".."` when we have the functionality | |||
// use `en` as fallback language | |||
// FIXME: Use `Bundle.elementLanguage = ".."` when we have the functionality |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
Codecov Report
@@ Coverage Diff @@
## develop #129 +/- ##
========================================
Coverage 35.57% 35.58%
========================================
Files 166 166
Lines 11524 11498 -26
Branches 5635 5631 -4
========================================
- Hits 4100 4091 -9
+ Misses 7333 7316 -17
Partials 91 91
Continue to review full report at Codecov.
|
c6af245
to
e47369a
Compare
bbd92a4
to
22f2591
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it's great to have this.
This PR adds SwiftFormat to the project as a build phase and runs it for the first time. I've gone for a regular pre-build phase on the main target which the docs don't particularly recommend (instead suggesting to use a step on the tests target). Seems like this should be ok for now, but happy to update now if deemed sensible.
Another option would be to never run manually, instead using Danger to inform you to run it on a PR.