-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 Android Studio Code Styles Ktlint #1350
Open
Jaehwa-Noh
wants to merge
11
commits into
android:main
Choose a base branch
from
Jaehwa-Noh:optimize-gradle
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change-Id: I62af44804812e55876cbec4e49898a22ebc376a6
Change-Id: I1a67953a63cda462ddaa3a36e5194f2f3196c9ba
Change-Id: Id0c411f2f592ba0f30bd4c10370129ecc10b4c43
Change-Id: Ia9b44fcd6242ba4c85814f88326e06b88f310d6b
Change-Id: I148afca4a4521021a0f881614e4e2e46b05f6e63
Change-Id: I893dd5f7f4967d8d7752484453e37637c08e862c
Jaehwa-Noh
changed the title
Remove editorConfigOverride and set
Apply Android Studio Code Styles Ktlint
Apr 2, 2024
ktlint_code_style
android_studio
in editorconfig.Change-Id: If6c285b4ee4c4a5b1464d0439afa2f014947f932
Change-Id: If8d885f5d5a9561dcb57621d1ab0d957618230bf
Change-Id: I949188a967b213598a8f4e3d4a34ac295788ab56 # Conflicts: # app/src/main/kotlin/com/google/samples/apps/nowinandroid/ui/interests2pane/InterestsListDetailScreen.kt
Change-Id: Ib7b0ede9a43540a035f804c0d5aa8ae1760cd5e4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I have done and why
Set Ktlint style
android_studio
to follow Google’s Android coding standards for source codeRemove editorConfigOverride and set
ktlint_code_style
android_studio
in editorconfig.android
(deprecated) to editorconfig.android_studio
linkroot=true
in.editorconfig
. linkNeed 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: