-
Notifications
You must be signed in to change notification settings - Fork 504
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
Continuation indent with Method declaration parameters #182
Comments
Hi.
My recommendation is to keep indent_size and continuation_indent_size equal (if .editorconfig contains I'll keep this ticket open until README is updated. |
@shyiko but jetbrains style guide has a continuation indent. Kotlin/kotlin-style-guide#38
My team is encountering this issue as well. |
One more vote that we are hitting this issue. In my mind, if |
@exsilium continuation_indent_size is not used for parameters per android/kotlin-guides#37, as such it's unlikely to change. As an option, though, if you change indent_size to unset indentation check will be suppressed (i.e. ktlint will accept any indentation). |
Hi @shyiko. Altough i'm saddened to hear that but I thank you for your answer. Cheers! 🍻 🙇 |
README updated. |
Hey o/
Just started using this awesome project, and now I'm unsure about something.
By default, Android Studio will use continuation indent with "method declaration parameters".
When using an indent of 2 with a continuation of 4, this is how Android Studio formats this code:
However, when I run ktlint, it warns me that it expects the following indentation:
Is ktlint working as expected here? I'm in doubt because the README (in this section) doesn't tell us to disable the continuation indent for this case in Intellij.
Thank you :)
The text was updated successfully, but these errors were encountered: