So after updating IDEA plugin I get LongParameterL...
# detekt
j
So after updating IDEA plugin I get LongParameterList error for many of my non data type constructors, is this intended behavior? I would expect to get this error only for function parameters
according to error constructor is function
LongParameterList: The function Foo has too many parameters. The current threshold is set to 6.
b
Yes, it is an intended behavior. You can configure both thresholds if you want.
j
but changing `constructorThreshold`would not help?
it's using
functionThreshold
b
Oh, that's a bug in the message. Could you open an issue to track it?
j
you sure? because `functionThreshold`default is 7 not 6 which is in error message
b
It should use constructorTheshold, yes.
j
you are right it's using
Copy code
constructorThreshold
b
Yeah, it seems an issue in the message.
s
Thanks for reporting this @Jukka Siivonen