detekt / detekt-intellij-plugin

detekt plugin for IntelliJ
https://plugins.jetbrains.com/plugin/10761-detekt
Apache License 2.0
297 stars 39 forks source link

IntelliJ reformatting code not as expected #511

Open rei-paypay opened 6 months ago

rei-paypay commented 6 months ago

Context

I'm using the Detekt plugin with the settings as shown in the screenshot below. CleanShot 2024-04-08 at 11 09 14

Detekt's reformatting function works as intended.

Problem

When I use the IDE's Reformat code, it doesn't align with what Detekt is configured.

Expactation

Reformat code should reformat code as would Detekt.

Note

I'm not sure if this has ever worked before or I just happened to have the right IDE configs to make it look like Reformat code works as expected, but this happened recently when I reopened an old Kotlin project.