-
Notifications
You must be signed in to change notification settings - Fork 165
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
Support --disabled_rules
#267
Comments
I suppose, using |
|
If you put following [*.{kt,kts}]
disabled_rules=no-wildcard-imports then it should automatically picked up by |
So |
Most probably in your previous attempts you've bumped into pinterest/ktlint#555 |
I didn't bump into that, but I simply didn't enable experimental features |
Hah, I ran into pinterest/ktlint#555 right now 😆 |
As I have a Gradle plugin which configures |
@fpavageau this is valid reason to add such support for ktlint-gradle 👍 |
Very strange, I just switched to the latest version of the plugin and disabling "no-wildcard-import" does not work. I have the following config:
It disables the package name rule just fine (I can see package name errors otherwise), but I am still seeing
Putting |
@Globegitter you have a typo in rule id here: disabledRules.set(setOf("experimental:package-name", "no-wildcard-import")) Correct id is "no-wildcard-imports". |
Please support
--disabled_rules
.I need it to disable
no-wildcard-imports
, because IntelliJ keeps adding in the dreadedjava.util.*
due to its misguidedPackages to Use Import with '*'
feature.The text was updated successfully, but these errors were encountered: