guerilla-di/tracksperanto

View on GitHub
lib/import/shake_script.rb

Summary

Maintainability
C
7 hrs
Test Coverage

Method stabilize has 17 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def stabilize(imageIn, applyTransform, inverseTransform, trackType,
      track1X, track1Y,
      stabilizeX, stabilizeY,
      track2X, track2Y,
      matchScale,
Severity: Major
Found in lib/import/shake_script.rb - About 2 hrs to fix

    Method matchmove has 17 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def matchmove(bgImage, fgImage, applyTransform,
          trackType,
          track1X,
          track1Y,
          matchX,
    Severity: Major
    Found in lib/import/shake_script.rb - About 2 hrs to fix

      Method tracker has 17 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def tracker(input, trackRange, subPixelRes, matchSpace,
              referenceTolerance, referenceBehavior, failureTolerance, failureBehavior, limitProcessing, referencFrame, 
              s1, s2, s3, s4, s5, s6, *trackers)
      Severity: Major
      Found in lib/import/shake_script.rb - About 2 hrs to fix

        Method collect_tracker has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def collect_tracker(name, x_curve, y_curve, corr_curve, *discard)
        Severity: Minor
        Found in lib/import/shake_script.rb - About 35 mins to fix

          Method deep_include? has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          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 |
          Severity: Minor
          Found in lib/import/shake_script.rb - About 25 mins to fix

          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"

          Further reading

          There are no issues that match your filters.

          Category
          Status