https://kotlinlang.org logo
#detekt
Title
# detekt
j

Jukka Siivonen

05/13/2020, 7:49 AM
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

Brais Gabin

05/13/2020, 7:52 AM
Yes, it is an intended behavior. You can configure both thresholds if you want.
j

Jukka Siivonen

05/13/2020, 7:53 AM
but changing `constructorThreshold`would not help?
it's using
functionThreshold
b

Brais Gabin

05/13/2020, 7:53 AM
Oh, that's a bug in the message. Could you open an issue to track it?
j

Jukka Siivonen

05/13/2020, 7:54 AM
you sure? because `functionThreshold`default is 7 not 6 which is in error message
b

Brais Gabin

05/13/2020, 7:54 AM
It should use constructorTheshold, yes.
j

Jukka Siivonen

05/13/2020, 7:57 AM
you are right it's using
Copy code
constructorThreshold
b

Brais Gabin

05/13/2020, 7:58 AM
Yeah, it seems an issue in the message.
s

schalkms

05/13/2020, 6:55 PM
Thanks for reporting this @Jukka Siivonen
28 Views