Skip to content
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

Deprecate continuationIndentSize from the Indentation rule #4551

Merged
merged 3 commits into from
Feb 4, 2022

Conversation

cortinico
Copy link
Member

@cortinico cortinico commented Feb 1, 2022

Users should not use the continuationIndentSize as it's essentially ignored by KtLint. Sadly we don't have a way to deprecate properties from rules inside formatting (cc @BraisGabin, were you aware of it? Should we offer this capacity?)

Fixes #2970

@cortinico cortinico added this to the 1.20.0 milestone Feb 1, 2022
@cortinico cortinico added the rules label Feb 1, 2022
@BraisGabin
Copy link
Member

No, I wasn't aware of it.

A quick workaround would be to add a line here: https://github.com/detekt/detekt/blob/main/detekt-core/src/main/resources/deprecation.properties. We could hardcode it in our detekt-generator but it should work and I think that it have sense to have it there for 2 or 3 minor versions.

Then, if we want to provide this option to any developer, we can open an issue and work on a proper solution. It shouldn't be too difficult but I vote to don't do this until a user ask for it.

@cortinico cortinico merged commit da062f9 into detekt:main Feb 4, 2022
@cortinico cortinico deleted the nc/2970 branch February 4, 2022 23:11
Goooler pushed a commit to Goooler/detekt that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indentation rule stopped working after upgrading to version 1.10.0
2 participants