Has Detekt, in general or the intellij plugin, a strict mode which force the refactor like Dart/Flutter plugin has? For example, if I have a
data class
in a single line which ends with a trailing comma, using the detekt plugin to format it, the format keeps. But it should be changing to multiline (or at least delete the trailing comma, but with a strict mode I think it should be converted to multiline).
Another example is can be:
fun something() = "something"
fun something() =
"something"
The second one clearly should be reformated to the first one because it fits de space, but like both approach are valid, it doesn't get reformat
I love a lot how the reformat works in Dart/Flutter because it forces A LOT how the code should look. Overall about spacing and playing with trailing comma to reformat from single line (or a "broken multiline") to multiline that looks good