-
Notifications
You must be signed in to change notification settings - Fork 14
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
Apply ktlint formatting #279
Conversation
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.
I see the check passed so approving.
I can't say much about the actual changes :)
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.
Well it is an automation, so there shouldn't be a lot to add.
From my side this is fine to be merged as it is right. See my comment's as NITs. At least one of them is probably not "fixable" anyway.
OfflineOptionEntryState.Failed, | ||
-> { |
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.
That looks odd 🤔
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.
I agree. I guess this is because of trailing commas rule: https://pinterest.github.io/ktlint/0.49.1/rules/configuration-ktlint/#trailing-comma-on-call-site
In the newest version of ktlint you either have the option to always have trailing commas or never. I decided to go with always, since it makes sense 99% of the time.
I'm not sure we can improve on that.
private fun drmModule(): DrmModule? = | ||
context.getNativeModule(DrmModule::class.java) | ||
context.getNativeModule(DrmModule::class.java) |
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.
NIT: Would fit into one line I think.
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.
Good point, I missed that.
bc9fa39
private fun uiManager(): UIManagerModule? = | ||
context.getNativeModule(UIManagerModule::class.java) | ||
context.getNativeModule(UIManagerModule::class.java) |
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.
NIT: Would fit into one line I think.
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.
Good point, I missed that.
bc9fa39
Description
Kotlin code isn't properly formatted.
Changes
This PR applies ktlint formatting introduced in #276.
Checklist
CHANGELOG
entry