rubinius/rubinius

View on GitHub

Showing 1,541 of 1,541 total issues

Class Array has 105 methods (exceeds 20 allowed). Consider refactoring.
Open

class Array
  include Enumerable

  def self.allocate
    Rubinius.primitive :array_allocate
Severity: Major
Found in core/array.rb - About 2 days to fix

    File kernel.rb has 836 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    module Kernel
      def equal?(other)
        Rubinius.primitive :object_equal
        raise PrimitiveFailure, "Kernel#equal? primitive failed"
      end
    Severity: Major
    Found in core/kernel.rb - About 2 days to fix

      Method parse_stream has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring.
      Open

        def parse_stream(f)
          class_pattern = /class\s+([^\s]+)\s*:\s*public\s+([^\s]+)/
          slot_pattern = %r!^\s*(\w+)\*?\s+\*?_(\w+)_\s*;\s*//\s*slot(.*)!
          accessor_pattern = %r!^\s*attr_(accessor|reader|writer)\((\w+),\s*(\w+)\)!
          primitive_pattern = %r%^\s*//\s+Rubinius.primitive([?!\+])?\s+:(.*)\s*$%
      Severity: Minor
      Found in build/scripts/field_extract.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

      File hash.rb has 762 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      class Hash
        include Enumerable
      
        Vector = Rubinius::Tuple
      
      
      Severity: Major
      Found in core/hash.rb - About 1 day to fix

        File file.rb has 730 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        class File < IO
          include Enumerable
        
          class FileError < Exception; end
          class NoFileError < FileError; end
        Severity: Major
        Found in core/file.rb - About 1 day to fix

          File enumerable.rb has 709 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          module Enumerable
            def chunk
              raise ArgumentError, "no block given" unless block_given?
              ::Enumerator.new do |yielder|
                previous = nil
          Severity: Major
          Found in core/enumerable.rb - About 1 day to fix

            Class Configure has 82 methods (exceeds 20 allowed). Consider refactoring.
            Open

            class Configure
            
              # Default settings only. All code that may depend on user-selected options
              # must run after options are processed.
              def initialize(root)
            Severity: Major
            Found in configure.rb - About 1 day to fix

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

                ["FF",0xA0],
                ["CF",0xA4],
                ["F5",0xA7],
                ["F9",0xA8],
                ["AE",0xAB],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/cp852-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["FF",0xA0],
                ["CF",0xA4],
                ["FD",0xA7],
                ["AE",0xAB],
                ["F0",0xAD],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/cp855-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["9A",0xA0],
                ["BF",0xA9],
                ["9C",0xB0],
                ["9D",0xB2],
                ["9E",0xB7],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["A0",0xA0],
                ["A2",0xA2],
                ["A3",0xA3],
                ["A4",0xA4],
                ["A5",0xA5],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["80",0x391],
                ["81",0x392],
                ["82",0x393],
                ["83",0x394],
                ["84",0x395],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/ibm737-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["CA",0xA0],
                ["A3",0xA3],
                ["FF",0xA4],
                ["A4",0xA7],
                ["A9",0xA9],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/macukraine-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["FF",0xA0],
                ["9B",0xA2],
                ["9C",0xA3],
                ["98",0xA4],
                ["A0",0xA6],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/ibm863-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["FF",0xA0],
                ["AD",0xA1],
                ["9B",0xA2],
                ["9C",0xA3],
                ["9D",0xA5],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/ibm437-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["FF",0xA0],
                ["CF",0xA4],
                ["F5",0xA7],
                ["F9",0xA8],
                ["AE",0xAB],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/ibm852-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["FF",0xA0],
                ["96",0xA2],
                ["9C",0xA3],
                ["9F",0xA4],
                ["A7",0xA6],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/ibm775-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["FF",0xA0],
                ["FD",0xA4],
                ["F8",0xB0],
                ["FA",0xB7],
                ["F0",0x401],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/ibm866-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["FF",0xA0],
                ["AD",0xA1],
                ["9B",0xA2],
                ["9C",0xA3],
                ["9D",0xA5],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/ibm862-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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 19 locations. Consider refactoring.
              Open

                ["FF",0xA0],
                ["CF",0xA4],
                ["FD",0xA7],
                ["AE",0xAB],
                ["F0",0xAD],
              Severity: Major
              Found in build/libraries/oniguruma/enc/trans/ibm855-tbl.rb and 18 other locations - About 1 day to fix
              build/libraries/oniguruma/enc/trans/cp850-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/cp855-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm437-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm737-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm775-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm852-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm860-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm861-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm862-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm863-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm865-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/ibm866-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-r-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/koi8-u-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/maccyrillic-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/macukraine-tbl.rb on lines 2..129
              build/libraries/oniguruma/enc/trans/windows-1256-tbl.rb on lines 2..129

              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 385.

              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

              Severity
              Category
              Status
              Source
              Language