Apply Android Studio Code Styles Ktlint
What I have done and why
Set Ktlint style android_studio to follow Google’s Android coding standards for source code
Remove editorConfigOverride and set ktlint_code_style android_studio in editorconfig.
- Move editorConfigOverride
android(deprecated) to editorconfig.
-a or --android: Turn on Android Kotlin Style Guide compatibility. This flag is most likely to be removed in a future version. Use .editorconfig ktlint_code_style.
root: special property that should be specified at the top of the file outside of any sections. Set to true to stop .editorconfig files search on current file.
Need to discussion about:
Android Studio style ktlint was set max-line-length(100) and alphabetic ordering imports as default value.
If you don't agree with these two rules.
Kindly leave your comment.
If it is fine, merge it!
Fix #1362
How I'm testing it
Choose at least one:
- Unit tests
- UI tests
- Screenshot tests
- [x] N/A (provide justification)
This PR has many conflicts due to the updated style. This is likely going to cause cascading issues with existing contributors that use the existing code style. Let's hold off updating and merging this for now.
@dturner FYI
It makes sense to use the android_studio code style so I'm happy for us to merge this once the conflicts have been resolved.
@Jaehwa-Noh are you happy to do that?
@dturner Yes, I'm very welcome to do that.