Skip to content

Conversation

@rli
Copy link
Contributor

@rli rli commented Dec 3, 2024

https://pinterest.github.io/ktlint/1.4.1/faq/#why-is-wildcard-import-javautil-not-reported-by-the-no-wildcard-imports-rule

Why is wildcard import java.util.* not reported by the no-wildcard-imports rule?¶
The no-wildcard-imports rule forbids wildcard imports, except for imports defined in .editorconfig property ij_kotlin_packages_to_use_import_on_demand. If this property is not explicitly set, it allows wildcards imports like java.util.* by default to keep in sync with IntelliJ IDEA behavior.

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rli rli requested review from a team as code owners December 3, 2024 16:39
@github-actions
Copy link

github-actions bot commented Dec 3, 2024

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@rli rli merged commit 2069e2d into main Dec 3, 2024
15 checks passed
@rli rli deleted the rli/fix-wildcard branch December 3, 2024 20:04
karanA-aws pushed a commit to karanA-aws/aws-toolkit-jetbrains that referenced this pull request Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants