lib/import/shake_script.rb
Method stabilize
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def stabilize(imageIn, applyTransform, inverseTransform, trackType,
track1X, track1Y,
stabilizeX, stabilizeY,
track2X, track2Y,
matchScale,
Method matchmove
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def matchmove(bgImage, fgImage, applyTransform,
trackType,
track1X,
track1Y,
matchX,
Method tracker
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def tracker(input, trackRange, subPixelRes, matchSpace,
referenceTolerance, referenceBehavior, failureTolerance, failureBehavior, limitProcessing, referencFrame,
s1, s2, s3, s4, s5, s6, *trackers)
Method collect_tracker
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def collect_tracker(name, x_curve, y_curve, corr_curve, *discard)
Method deep_include?
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def deep_include?(array_or_element, atom_name)
return false unless array_or_element.is_a?(Array)
return true if array_or_element[0] == atom_name
array_or_element.each do | elem |
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"