detekt / detekt-intellij-plugin

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

maxLineLength in config not picked up by plugin #506

Open adrianlandborn opened 6 months ago

adrianlandborn commented 6 months ago

There seems to be some inconsistency with the config (and potentially Ktlint and default IntelliJ/Android studio rules).

Running:

In detekt plugin, check "enable formatting (ktlint) rules" Now I get this warning everywhere where the line exceeds 120 characters. image

The problem is the it is not set to 120 but 150 in all places.

image image

Also note maxLineLength vs maximumLineLength. Depending what I set in detekt.yml I get the opposite shown by the plugin? 🤔