-
Notifications
You must be signed in to change notification settings - Fork 503
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
Indentation rule inconsistently identifies issues with multiline string closing quotes between functions and properties #1971
Comments
This probably should have been changed previously, but it now seems required to work around a bug in ktlint (pinterest/ktlint#1971)
See this bug in ktlint: pinterest/ktlint#1971
I can can not reproduce this finding on
This is indeed not consistent and needs to be fixed. |
@3flex Can you please respond on previous comment? It would be more convenient for me to know whether a problem is to be fixed with example of |
…e to keep formatting of other code styles consistent with `0.48.x` and before Closes #1971
Ktlint In |
Expected Behavior
Indentation rule treats properties and functions similarly when identifying issues with multiline string closing quotes.
Observed Behavior
The rule is identifying issues with multiline string closing quotes inconsistently, when the only difference is whether the multiline string is returned from a function or is used as a property.
Steps to Reproduce
Throws violation on last line, first char.
Throws violation on second last line, first char.
Does not throw. The only difference between this and the first case is the change from
fun foo()
toval foo
.Your Environment
.editorconfig
settings: N/A, using detekt wrapper, but also verified by adding failing test cases toIndentationRuleTest
The text was updated successfully, but these errors were encountered: