I found many materials describing bad smell in code, and I choose some which may be easy to check.
*Duplicated code
- Same code structure in more than one place.
- Same expression in two sibling subclasses.
- Code is similar but not the same.
- Methods do the same thing with a different algorithm.
*Long method
- Using a temporary variable to hold the result of an expression.
- Methods with long list of parameters.
- Too many conditions and loops.
*Long Parameter List
- A method call requires passing long list of parameters.
*Divergent change / shotgun surgery
I found many materials describing bad smell in code, and I choose some which may be easy to check.
*Duplicated code
*Long method
*Long Parameter List
*Divergent change / shotgun surgery