-
-
Notifications
You must be signed in to change notification settings - Fork 762
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
Check if it is feasible to integrate ktlint as a rule set #38
Comments
ktlint-standard-ruleset is not published to maven central as standalone artifact. Formatting rules were fixed and cleaned up for M11. |
@shyiko nice thx. Did not find it on my own :) |
KtLint uses the embeddable kotlin compiler, detekt not. |
Detekt now uses the embeddable compiler. A KtLint rule set is now feasible. Idea:
|
So the idea is to get rid of the formatting part in detekt ( |
Yeah it would be best. I still do not know what to do with the formatting rules which ktlint does not have. Move them to StyleGuideProvider? Should I think a hybrid |
I'm at the moment using both tools. Ktlint only for formatting and detekt for everything else. I'd assume that also the way to go for the future. |
PoC: 18be6bc Fairly easy to integrate. |
@arturbosch |
Yes, its done, some documentation is needed, but that can be done when we integrate the module into our CI, thanks for the reminder. |
I am new to the project (just integrated it) and I'm a bit lost about role of ktlint in detekt. I was researching why does detekt currently have to very similar rules Is this ok, or should I report an issue (or I could submit a PR if you suggest me how this should be resolved). |
Not too sure I understand how this ktlint integration works. If I add the ktlint integration as a formatting ruleset, does it mean detekt will report formatting errors, and if I do not add it, it won't report them? Can I possibly run code formatting with detekt once I add the ktlint integration? |
@idrisadetunmbi I don't quite understand your question. |
pro:
neg:
The text was updated successfully, but these errors were encountered: