4 ms·
I like to call these smells, not rules. They're an indication that something might be wrong because you've repeated code, or because your method is too long, or
by charles_f 2y ago
I like to call these smells, not rules. They're an indication that something might be wrong because you've repeated code, or because your method is too long, or because you have too many parameters. But it might also be a false positive because in this instance it was acceptable to repeat code or have a long method or have many parameters.
Sometimes food smells because it turned bad, and sometimes it's smelly because it's cheese.