-
Notifications
You must be signed in to change notification settings - Fork 49
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
Unexpected indendation is reporting non-existent issues (Android project) #42
Comments
Cool. I'll update my IDE settings to reflect this and awaaaay I go. Thanks! |
Although, I will note that I tried this, and it accomplished nothing:
Am I doing it wrong? :) |
Thanks for the help-out @shyiko @autonomousapps I'll look into it. The expectation was that |
Parameters use single indent per |
Now it's yelling at me about another indentation issue.
|
Thanks for the info. That is interesting that the style guide special cases class (primary) constructor parameters as regular indents but continuation indents for secondary constructors and function calls. I get their rationale, but IntelliJ's Kotlin formatter treats the primary constructor parameters as continuation indent. I wonder if someone ought to file a bug against JetBrains since they aren't in internal agreement. |
And I've also noticed that Now that the default will be 4 and 4 I guess the discrepancy with IntelliJ will not be troublesome. |
On your latest code example, ( |
@autonomousapps let me know if there's anything else I can do to help. Otherwise can we resolve the issue? |
@autonomousapps Please take a look at my setup for Kotlin plugin. Pay attention that "use continuation indent" is checked only for: "Method call arguments", "Chained method calls" and "expression body functions". |
@jeremymailen actually, I had removed the The issue seems to be that IntelliJ doesn't let me specify those two cases individually. But frankly, I am ok with using a continuation indent of 4. The value of the tool outweighs such minor concerns. (oh whoops, I'm wrong about this) PS @MyDogTom thanks for that advice! I'll consider doing that, instead. Now that I have two options two deal with this, I fully consider the issue resolved. Thanks, everyone! |
The 8 spaces are required for continuation indents by the Android Kotlin Style Guide.
The text was updated successfully, but these errors were encountered: