# detekt


09/16/2019, 1:58 PM
when I see something like this online

it's making me think I need to do a lot of refactoring

Artur Bosch

09/16/2019, 8:43 PM
I would normally not search for a threshold on the internet but compare this score of 68 to other methods/functions of your code base. Maybe even run this rule with a threshold of 1 and let it report all your functions, but them inside excel and calculate the average. Take that plus standard deviation and you have your personal code base score 🙂. Now try to be under your personal threshold and embrace short easy to read fucntions 🙂. However in the end a number is just a number and you should not sacrifice readability only to reach it. Personally I would strive for short (<20 lines) and not too much nested functions. Hope my answer helps you.