Skip to content
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

Handling unambiguous imports and optimizing imports for Java on the fly through spotless #1993

Closed
umarpro18 opened this issue Jan 12, 2024 · 1 comment

Comments

@umarpro18
Copy link

umarpro18 commented Jan 12, 2024

Need help, I ran spotlessApply during commit (via git hooks) post successful commit the java files again undergoes changes that applied via "intellij auto unambiguous imports and optimizing imports on fly". How we can omit this happening without disabling the auto import on the fly option?
java {
target '**/*.java'
googleJavaFormat().aosp()
removeUnusedImports()
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}

@nedtwigg
Copy link
Member

Until Spotless can embed the IntelliJ formatter directly

we can't guarantee that no changes between Spotless and IntelliJ.

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

No branches or pull requests

2 participants