Detection of the final smell of the code with the code will be possible on the same day as the problem with stopping. *takes off joke hat*
What he just does is set some parameters to what he considers bad code. And this is wrong (imo)
Having equal or more than 4 parameters is the smell of code? He himself has it in a code smell detector!
More than 20 lines for a function - is it the smell of code? The main function in this code smell detector is 49 lines of code.
The smell of code is not something you can program, in some cases the best way to make a function is to use a non-standard way (regardless of what it is), and in other cases it is not. You just have to trust your instinct and do as Frank Farmer said in the comments above. Just take a good wave.
source share