-
-
Notifications
You must be signed in to change notification settings - Fork 783
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 stopped working after upgrading to version 1.10.0 #2970
Comments
As you said, you're not alone: pinterest/ktlint#764 The current workaround is either to:
|
Shall we close this issue then in order to not have a duplicate? |
Yes, it can be closed. As the problem is actually related to KtLint, i will follow its ticket (thanks @cortinico !) |
The issue seems should be fixed in KtLint |
Can you provide a reproducer? |
Here's a bug reproduction project: https://github.com/libon/DetektIndentationIssue |
Thanks for the reproducer @calvarez-ov
Therefore we need to deprecate the following config as it's not taken into account by KtLint at all: Lines 28 to 29 in e0fa7a3
|
Expected Behavior
In our project we have Indentation rule turned on with the following rule settings:
It is done in accord with our project settings:
It worked prior to version 1.10.0
Observed Behavior
We tried upgrading detekt to version 1.10.0 and got 13k errors related to Indentation rule. It says we have wrong indent and the auto correction turned on tries to reformat the code.
The example code that fails Indentation rule after upgrading:
Detekt says that the problem is on the line
.toVO { address -> address.id == id }
I know that the new version of KtLint now uses a new Indentation rule that was in experimental state earlier, but I found no mentions that something should break and no guidelines on how to fix it.
Your Environment
The text was updated successfully, but these errors were encountered: