SciRuby/nmatrix

View on GitHub
lib/nmatrix/jruby/nmatrix_java.rb

Summary

Maintainability
F
1 wk
Test Coverage

File nmatrix_java.rb has 625 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'java'
require_relative '../../../ext/nmatrix_java/vendor/commons-math3-3.6.1.jar'
require_relative '../../../ext/nmatrix_java/target/nmatrix.jar'

java_import 'org.apache.commons.math3.linear.ArrayRealVector'
Severity: Major
Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 day to fix

    Method initialize has a Cognitive Complexity of 61 (exceeds 5 allowed). Consider refactoring.
    Open

      def initialize(*args)
        if args[-1] == :copy
          @shape = [2,2]
          @s = [0,0,0,0]
          @dim = shape.is_a?(Array) ? shape.length : 2
    Severity: Minor
    Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 day 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

    Class NMatrix has 58 methods (exceeds 20 allowed). Consider refactoring.
    Open

    class NMatrix
      include_package 'org.apache.commons.math3.analysis.function'
      attr_accessor :shape, :dim, :dtype, :stype, :s
    
      def initialize(*args)
    Severity: Major
    Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 day to fix

      Method initialize has 70 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def initialize(*args)
          if args[-1] == :copy
            @shape = [2,2]
            @s = [0,0,0,0]
            @dim = shape.is_a?(Array) ? shape.length : 2
      Severity: Major
      Found in lib/nmatrix/jruby/nmatrix_java.rb - About 2 hrs to fix

        Method !~ has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

          def !~ (other)
            lha = @s.toArray.to_a
            rha = other.s.toArray.to_a
            resultArray = Array.new(lha.length)
            if (other.is_a?(NMatrix))
        Severity: Minor
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 hr 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

        Method is_symmetric has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

          def is_symmetric(hermitian)
            is_symmetric = true
        
            if (@shape[0] == @shape[1] and @dim == 2)
              if @stype == :dense
        Severity: Minor
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 hr 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

        Method > has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

          def > (other)
            lha = @s.toArray.to_a
            rha = other.s.toArray.to_a
            resultArray = Array.new(lha.length)
            if (other.is_a?(NMatrix))
        Severity: Minor
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 hr 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

        Method <= has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

          def <= (other)
            lha = @s.toArray.to_a
            rha = other.s.toArray.to_a
            resultArray = Array.new(lha.length)
            if (other.is_a?(NMatrix))
        Severity: Minor
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 hr 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

        Method =~ has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

          def =~ (other)
            lha = @s.toArray.to_a
            rha = other.s.toArray.to_a
            resultArray = Array.new(lha.length)
            if (other.is_a?(NMatrix))
        Severity: Minor
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 hr 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

        Method >= has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

          def >= (other)
            lha = @s.toArray.to_a
            rha = other.s.toArray.to_a
            resultArray = Array.new(lha.length)
            if (other.is_a?(NMatrix))
        Severity: Minor
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 hr 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

        Method < has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

          def < (other)
            lha = @s.toArray.to_a
            rha = other.s.toArray.to_a
            resultArray = Array.new(lha.length)
            if (other.is_a?(NMatrix))
        Severity: Minor
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 1 hr 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

        Method == has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

          def ==(otherNmatrix)
            result = false
            if (otherNmatrix.is_a?(NMatrix))
              #check dimension
              if (@dim != otherNmatrix.dim)
        Severity: Minor
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 55 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

        Avoid deeply nested control flow statements.
        Open

                    if args[1].is_a?(Symbol)
                      hash = args[1]
                      @dtype = hash[:dtype]
                      @stype = hash[:stype]
                      elements = Array.new(shape*shape) unless shape.is_a? Array
        Severity: Major
        Found in lib/nmatrix/jruby/nmatrix_java.rb - About 45 mins to fix

          Method dot has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

            def dot(other)
              result = nil
              if (other.is_a?(NMatrix))
                #check dimension
                if (@shape.length!=2 || other.shape.length!=2)
          Severity: Minor
          Found in lib/nmatrix/jruby/nmatrix_java.rb - About 35 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

          Method __dense_each__ has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

            def __dense_each__
              nmatrix = create_dummy_nmatrix
              stride = get_stride(self)
              offset = 0
              #Create indices and initialize them to zero
          Severity: Minor
          Found in lib/nmatrix/jruby/nmatrix_java.rb - About 35 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

          Similar blocks of code found in 6 locations. Consider refactoring.
          Open

            def <= (other)
              lha = @s.toArray.to_a
              rha = other.s.toArray.to_a
              resultArray = Array.new(lha.length)
              if (other.is_a?(NMatrix))
          Severity: Major
          Found in lib/nmatrix/jruby/nmatrix_java.rb and 5 other locations - About 2 hrs to fix
          lib/nmatrix/jruby/nmatrix_java.rb on lines 516..542
          lib/nmatrix/jruby/nmatrix_java.rb on lines 545..571
          lib/nmatrix/jruby/nmatrix_java.rb on lines 603..629
          lib/nmatrix/jruby/nmatrix_java.rb on lines 632..658
          lib/nmatrix/jruby/nmatrix_java.rb on lines 661..687

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 87.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 6 locations. Consider refactoring.
          Open

            def >= (other)
              lha = @s.toArray.to_a
              rha = other.s.toArray.to_a
              resultArray = Array.new(lha.length)
              if (other.is_a?(NMatrix))
          Severity: Major
          Found in lib/nmatrix/jruby/nmatrix_java.rb and 5 other locations - About 2 hrs to fix
          lib/nmatrix/jruby/nmatrix_java.rb on lines 516..542
          lib/nmatrix/jruby/nmatrix_java.rb on lines 545..571
          lib/nmatrix/jruby/nmatrix_java.rb on lines 574..600
          lib/nmatrix/jruby/nmatrix_java.rb on lines 632..658
          lib/nmatrix/jruby/nmatrix_java.rb on lines 661..687

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 87.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 6 locations. Consider refactoring.
          Open

            def < (other)
              lha = @s.toArray.to_a
              rha = other.s.toArray.to_a
              resultArray = Array.new(lha.length)
              if (other.is_a?(NMatrix))
          Severity: Major
          Found in lib/nmatrix/jruby/nmatrix_java.rb and 5 other locations - About 2 hrs to fix
          lib/nmatrix/jruby/nmatrix_java.rb on lines 516..542
          lib/nmatrix/jruby/nmatrix_java.rb on lines 545..571
          lib/nmatrix/jruby/nmatrix_java.rb on lines 574..600
          lib/nmatrix/jruby/nmatrix_java.rb on lines 603..629
          lib/nmatrix/jruby/nmatrix_java.rb on lines 661..687

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 87.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 6 locations. Consider refactoring.
          Open

            def > (other)
              lha = @s.toArray.to_a
              rha = other.s.toArray.to_a
              resultArray = Array.new(lha.length)
              if (other.is_a?(NMatrix))
          Severity: Major
          Found in lib/nmatrix/jruby/nmatrix_java.rb and 5 other locations - About 2 hrs to fix
          lib/nmatrix/jruby/nmatrix_java.rb on lines 516..542
          lib/nmatrix/jruby/nmatrix_java.rb on lines 545..571
          lib/nmatrix/jruby/nmatrix_java.rb on lines 574..600
          lib/nmatrix/jruby/nmatrix_java.rb on lines 603..629
          lib/nmatrix/jruby/nmatrix_java.rb on lines 632..658

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 87.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 6 locations. Consider refactoring.
          Open

            def !~ (other)
              lha = @s.toArray.to_a
              rha = other.s.toArray.to_a
              resultArray = Array.new(lha.length)
              if (other.is_a?(NMatrix))
          Severity: Major
          Found in lib/nmatrix/jruby/nmatrix_java.rb and 5 other locations - About 2 hrs to fix
          lib/nmatrix/jruby/nmatrix_java.rb on lines 516..542
          lib/nmatrix/jruby/nmatrix_java.rb on lines 574..600
          lib/nmatrix/jruby/nmatrix_java.rb on lines 603..629
          lib/nmatrix/jruby/nmatrix_java.rb on lines 632..658
          lib/nmatrix/jruby/nmatrix_java.rb on lines 661..687

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 87.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 6 locations. Consider refactoring.
          Open

            def =~ (other)
              lha = @s.toArray.to_a
              rha = other.s.toArray.to_a
              resultArray = Array.new(lha.length)
              if (other.is_a?(NMatrix))
          Severity: Major
          Found in lib/nmatrix/jruby/nmatrix_java.rb and 5 other locations - About 2 hrs to fix
          lib/nmatrix/jruby/nmatrix_java.rb on lines 545..571
          lib/nmatrix/jruby/nmatrix_java.rb on lines 574..600
          lib/nmatrix/jruby/nmatrix_java.rb on lines 603..629
          lib/nmatrix/jruby/nmatrix_java.rb on lines 632..658
          lib/nmatrix/jruby/nmatrix_java.rb on lines 661..687

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 87.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

            def each_stored_with_indices
              nmatrix = create_dummy_nmatrix
              stride = get_stride(self)
              offset = 0
              #Create indices and initialize them to zero
          Severity: Major
          Found in lib/nmatrix/jruby/nmatrix_java.rb and 1 other location - About 1 hr to fix
          lib/nmatrix/jruby/nmatrix_java.rb on lines 347..372

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 74.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

            def each_with_indices
              nmatrix = create_dummy_nmatrix
              stride = get_stride(self)
              offset = 0
              #Create indices and initialize them to zero
          Severity: Major
          Found in lib/nmatrix/jruby/nmatrix_java.rb and 1 other location - About 1 hr to fix
          lib/nmatrix/jruby/nmatrix_java.rb on lines 376..401

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 74.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          There are no issues that match your filters.

          Category
          Status