Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (31 sloc) 1.66 KB
Root.Smell.MethodSmell Parent Index
Sibling aspects ClassSmell Complexity Naming


Code smells related to a method or function definition.

Method-level code smells indicate poorly defined method and or functions (too long method or functions, or functions with too many parameters) in your source code.



def do_nothing(var1, var2, var3, var4, var5, var6, var7):


Make your functions and methods unambiguous, easy to read and debug by reducing the number of parameters and length of your methods and functions.

How to fix this

A fix for this would simply consist of redefining the functions (and or method), making them shorter and reducing the number of parameters (maybe by creating more functions or using libraries).