-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ktlint_code_style = android not working #1559
Comments
Please provide more details on how to reproduce. Include a code sample, entire |
module level .editorconfig is like below
task difinition like below.
if I remove the line "ktlint_code_style = android" in .editorconfig file, task runs well. but I add the line, Exception occurs |
…ty from ".editorconfig" Closes pinterest#1559
…ty from ".editorconfig" Closes pinterest#1559
I have question. what is the difference of between "official" and "android" for ktlint_code_style property. the "android" code style is for https://developer.android.com/kotlin/style-guide#formatting right? |
Yes it is. But as far as I know this property only affects the default values of some other properties. For example, android codestyle uses a default max line length of 100 while official does not have a default set. I am not aware of rules that apply different formatting implementations for Android vs official. |
Expected Behavior
ktlint_code_style should be applied. but when run gradle task of ktlint, exception occurred
Observed Behavior
ClassCastException occurred
when I see the document in https://pinterest.github.io/ktlint/rules/configuration/
we can configure the code style to android. but the property is not working...
Steps to Reproduce
add "ktlint_code_style = official" to project or module level .editorconfig
Your Environment
.editorconfig
settings "ktlint_code_style"The text was updated successfully, but these errors were encountered: