-
Notifications
You must be signed in to change notification settings - Fork 502
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
import java.util.* ignored as wildcard import #1614
Comments
I am failing to understand your issue. You mention at the start of the issue a problem with the wildcard import rule (e.g. The part that is confusing is that at the end of the issue you mention that in sample below ktlint even doesn't fail for the case of unused imports:
In this sample |
@paul-dingemans used: Example 1
output: (only 2 errors detected)
Example 2
output: (unexpectedly no error for java.util.*)
|
and the log of |
just a guess, Line 94 in 1d9ca64
if so, can I disable it somehow ? |
That is really a good catch. I can only vaguely remember that I saw this code before. You are really close to solve this yourself. Line 94 define the default value for property
You can override that property in your
|
awesome, it does the trick, so closing it.. |
Expected Behavior
Failing ktlintCheck for
wildcard import
ruleObserved Behavior
ktlintCheck task finishes as success
Steps to Reproduce
.editorconfig
ktlint.gradle
test.kt
run
./gradlew ktlintCheck
(doesn't fail even for case of unused imports)(doesn't seem to be an issue for 0.47.0)might be related to #1256
Your Environment
ktLintPlugin=11.0.0
ktLint=0.45.2 (due to incompatibility plugin vs ktlint 0.46+, this seems to be latest working version)
The text was updated successfully, but these errors were encountered: