Starting with Android Studio Electric Eel (problem still present in 2022.1.1 Patch 2) I'm experiencing a problem with formatting warnings.
- I have Incorrect formatting warnings enabled from the settings.
- Every time a add a new line, since the IDE adds an indentation that follows the previous line one, I see a warning:
If I remove the indentation at the start of the line, the warning disappears.
This isn't ideal, since the indentation is removed automatically by the IDE when the file is saved. So the warning shouldn't appear. In Android Studio versions before Electric Eel it always worked fine.
I already tried invalidating/resetting the cache and nothing changed.
Do you know if it's an IDE bug? or am I missing something?