Skip to content

AutoCorrect For Non-Formatting Built-In Rulesets #6617

Answered by schalkms
johnameyer asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply. I think I can shed some light on the matter. In early versions detekt included native formatting rules, which manipulated user source code, as ktlint does. However, no-one wanted to reinvent the wheel. That's why the idea came up to natively incorporate ktlint rules in detekt. Consequently, Artur build a wrapper around ktlint, which brings us to the current formatting ruleset. I also found one of the discussions from back then. This was just the executive summary. Surely, the full story is a bit longer. You can find it under the following issue #1304, as well as in the linked issues there. If you have more questions, feel free to put a comment underneath.

Anyways…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cortinico
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants