Closed thiago-you closed 8 months ago
Please consult ktlint documentation: https://pinterest.github.io/ktlint/latest/faq/#how-do-i-enable-or-disable-a-rule
Thanks for the quick response and the documentation link @paul-dingemans!
I updated the rule according to the documentation:
ktlint_standard_multiline-expression-wrapping = disabled
But now all rules seem to be disabled.
Before applying the rule:
After applying the rule: (no visual warnings)
What is the content of your ktlint-plugin.xml
file (located in idea
folder)? Please also check wheter the Problem Window
displays anything like below:
It seems that is required to disable this rule as well:
ktlint_standard_string-template-indent
This is the ktlint-plugin.xml:
By the way, I'm missing the configuration to show lint errors as a visual warning (instead of red errors), it is possible to config this into the XML file?
It seems that is required to disable this rule as well:
ktlint_standard_string-template-indent
Yes indeed. This is shown in log and some popup-notification.
By the way, I'm missing the configuration to show lint errors as a visual warning (instead of red errors), it is possible to config this into the XML file?
No, but this is something that will be addressed in #414
Is there a way to disable this rule?
I tried this, but it didn't work.
.editorconfig
ktlint_args=--disabled_rules=multiline-expression-wrapping disabled_rules=multiline-expression-wrapping