-
Notifications
You must be signed in to change notification settings - Fork 50
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
Kotlinter 3.12.0 complains about disabled_rules
and lints stuff in generated-sources
#288
Comments
Just to confirm: you're running the |
Yup!
Thanks, that fixed the |
Can you share which plugin generates files under btw. you can manually configure Kotlinter to exclude generated files (in a slightly confusing way 😬) - I can link a similar issue which lists couple of examples how to exclude generated files: #256 |
It seems like the kotlin-dsl itself. Not 100% sure though.
Could do that, but weird that this isn't a problem in 3.10.x |
I'm fairly sure kotlin-dsl doesn't generate any sources 👀
Huh, I don't recall any changes around recognizing sourcesets 🤔 I'd rather guess |
I'm going to close the issue for now, I hope nobody will mind that - There is nothing we can change on the plugin side as for this moment, I shared the workaround that skips linting generated source (#256), and we'll need a repro project before we can investigate the issue any further 👀 |
Hi, sorry for the late reply. Somehow I'm still having problems with the generated sources, even with the exclude from #265
I'm on kotlin 1.8 and kotlinter 3.13.0. (The results are the same on kotlin 1.7.x) |
@henrik242 Can you share how did you apply kotlinter to your |
Regarding the generated-sources problem. Adding this helped:
(idea from JLLeitschuh/ktlint-gradle#266 (comment)) I first tried |
Tried updating to 3.12.0, but I'm not able to get rid of these:
I have renamed
disabled_rules
toktlint_disabled_rules
.The text was updated successfully, but these errors were encountered: