-
Notifications
You must be signed in to change notification settings - Fork 509
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
Imports only used in docs #46
Comments
@gabrielittner Thank you for the ticket! I'll take care of it. |
On a second thought, it might be what we want. The thing is [Colors](android.provider.CalendarContract.Colors)
[android.provider.CalendarContract.Colors] What do think? |
I'm not sure what's the best solution here. In the case where I've run across it, the imported class is used a ton in the docs and using it without import adds a lot of noise. |
I'm running into the same issue and I'd prefer if the import would be allowed in this case for the same reason. It would add a lot of noise to reference the full path everywhere. |
@gabrielittner @vRallev fair enough. Fixed in 0.7.1 (Maven Central sync might take up to ~25 minutes). 🎉 |
The new version works nicely. Thanks! |
Also working here. Thank you |
When an import is only used in square brackets in the docs it will get removed by ktlint. For example:
will become:
IntelliJ itself shows the import as used (or not as unused).
The text was updated successfully, but these errors were encountered: