nbadal / ktlint-intellij-plugin

Ktlint plugin for IntelliJ IDEA + Android Studio
MIT License
151 stars 23 forks source link

Change ktlint errors in IDE to warning level #473

Closed 14v closed 4 months ago

14v commented 4 months ago

After installing plugin got ktlint errors underlined red. This is mixed with compilation errors. How can I change ktlint error level to warning (yellow) ?

paul-dingemans commented 4 months ago

Please include code sample and screendump.

14v commented 4 months ago

For example use star import when it is prohibited

image

paul-dingemans commented 4 months ago

This is normal behavior. Error level can not be changed manually anymore. If you don't care about wildcard imports, it is better to disable the rule. https://pinterest.github.io/ktlint/latest/faq/#how-do-i-enable-or-disable-a-rule