-
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
disabled-rules for ktlint in .editorconfig is ignored #112
Comments
Thanks for the report -- it looks like this broken between |
Ok, give 2.1.1 a try. I suspect I'm going to have to address the same issue for other properties that can be in both places such as |
Thank you for the new release. With this one, I do not get the errors any more, BUT it also doesn't pick up the other rules/restrictions from So, my setup is like this:
With kotlinter 2.1.0:
So, this is the case I was describing initially: kotlinter ignores the But I did the counter-check with this
And with kotlinter 2.1.1:
So it seems like the original |
Do you still have this line in
If not, can you try |
I am aware that accepting |
Thanks for the "workaround", doing an explicit |
Still happens to me with 2.1.1 though :\
I'm still seeing errors from import ordering rule. Excluding them in plugin extension works, using |
@lwasyl it looks like
|
@jeremymailen guess how IntelliJ reformats that file if you let it. Right, with spaces between the commas in the file type selector. |
Yes 😞 that is a bummer @mindhaq. The editorconfig parsing functionality comes from ktlint in this case. They did switch from a custom implementation to using ec4j (pinterest/ktlint#561). It's not in a release yet, but I imagine once we can upgrade to that it will fix the quirk with whitespace breaking the section. |
Maybe we need an |
This can be solved by unchecking |
this resolve! thank you |
Since 0.34, ktlint supports disabling rules globally with a setting in the
.editorconfig
file:(see https://github.com/pinterest/ktlint#custom-editorconfig-properties)
It seems like kotlinter does not pick up that configuration setting and it has to be repeated in the corresponding kotlinter configuration that was introduced in version 2.0.0.
Am I missing something or is this duplication necessary?
The text was updated successfully, but these errors were encountered: