rubinius/rubinius

View on GitHub

Showing 1,541 of 1,541 total issues

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

  ["FF",0xA0],
  ["AD",0xA1],
  ["9B",0xA2],
  ["9C",0xA3],
  ["A6",0xAA],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/ibm860-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/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],
  ["AD",0xA1],
  ["9C",0xA3],
  ["AF",0xA4],
  ["A6",0xAA],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/ibm865-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/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],
  ["BD",0xA2],
  ["9C",0xA3],
  ["CF",0xA4],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/cp850-tbl.rb and 18 other locations - About 1 day to fix
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
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],
  ["A2",0xA2],
  ["A3",0xA3],
  ["FF",0xA4],
  ["A4",0xA7],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/maccyrillic-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/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-r-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-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],
  ["9C",0xA3],
  ["AE",0xAB],
  ["AA",0xAC],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/ibm861-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/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

File rubygems.rb has 676 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'rbconfig'
require 'thread'

module Gem
  VERSION = "2.7.5"
Severity: Major
Found in library/rubygems.rb - About 1 day to fix

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

      ["CA",0xA0],
      ["C1",0xA1],
      ["A2",0xA2],
      ["A3",0xA3],
      ["DB",0xA4],
    Severity: Major
    Found in build/libraries/oniguruma/enc/trans/macroman-tbl.rb and 5 other locations - About 1 day to fix
    build/libraries/oniguruma/enc/trans/maccroatian-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macgreek-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/maciceland-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macromania-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/windows-1251-tbl.rb on lines 2..128

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

    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

      ["CA",0xA0],
      ["92",0xA3],
      ["B4",0xA5],
      ["9B",0xA6],
      ["AC",0xA7],
    Severity: Major
    Found in build/libraries/oniguruma/enc/trans/macgreek-tbl.rb and 5 other locations - About 1 day to fix
    build/libraries/oniguruma/enc/trans/maccroatian-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/maciceland-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macroman-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macromania-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/windows-1251-tbl.rb on lines 2..128

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

    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

      ["CA",0xA0],
      ["C1",0xA1],
      ["A2",0xA2],
      ["A3",0xA3],
      ["DB",0xA4],
    Severity: Major
    Found in build/libraries/oniguruma/enc/trans/maccroatian-tbl.rb and 5 other locations - About 1 day to fix
    build/libraries/oniguruma/enc/trans/macgreek-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/maciceland-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macroman-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macromania-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/windows-1251-tbl.rb on lines 2..128

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

    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

      ["A0",0xA0],
      ["A4",0xA4],
      ["A6",0xA6],
      ["A7",0xA7],
      ["A9",0xA9],
    Severity: Major
    Found in build/libraries/oniguruma/enc/trans/windows-1251-tbl.rb and 5 other locations - About 1 day to fix
    build/libraries/oniguruma/enc/trans/maccroatian-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macgreek-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/maciceland-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macroman-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macromania-tbl.rb on lines 2..128

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

    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

      ["CA",0xA0],
      ["C1",0xA1],
      ["A2",0xA2],
      ["A3",0xA3],
      ["DB",0xA4],
    Severity: Major
    Found in build/libraries/oniguruma/enc/trans/macromania-tbl.rb and 5 other locations - About 1 day to fix
    build/libraries/oniguruma/enc/trans/maccroatian-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macgreek-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/maciceland-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macroman-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/windows-1251-tbl.rb on lines 2..128

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

    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

      ["CA",0xA0],
      ["C1",0xA1],
      ["A2",0xA2],
      ["A3",0xA3],
      ["DB",0xA4],
    Severity: Major
    Found in build/libraries/oniguruma/enc/trans/maciceland-tbl.rb and 5 other locations - About 1 day to fix
    build/libraries/oniguruma/enc/trans/maccroatian-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macgreek-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macroman-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/macromania-tbl.rb on lines 2..128
    build/libraries/oniguruma/enc/trans/windows-1251-tbl.rb on lines 2..128

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

    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

    File loader.rb has 660 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    TOPLEVEL_BINDING = binding()
    
    module Rubinius
      class Loader
        def initialize
    Severity: Major
    Found in core/loader.rb - About 1 day to fix

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

        ["A0",0xA0],
        ["A4",0xA4],
        ["A6",0xA6],
        ["A7",0xA7],
        ["A8",0xA8],
      Severity: Major
      Found in build/libraries/oniguruma/enc/trans/windows-1250-tbl.rb and 1 other location - About 1 day to fix
      build/libraries/oniguruma/enc/trans/windows-1252-tbl.rb on lines 2..124

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

      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

        ["A0",0xA0],
        ["A1",0xA1],
        ["A2",0xA2],
        ["A3",0xA3],
        ["A4",0xA4],
      Severity: Major
      Found in build/libraries/oniguruma/enc/trans/windows-1252-tbl.rb and 1 other location - About 1 day to fix
      build/libraries/oniguruma/enc/trans/windows-1250-tbl.rb on lines 2..124

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

      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

      Method set_index has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
      Open

        def set_index(index, ent, fin=undefined)
          Rubinius.primitive :array_aset
      
          Rubinius.check_frozen
      
      
      Severity: Minor
      Found in core/array.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 File has 76 methods (exceeds 20 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 server.rb has 638 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        require 'webrick'
        require 'zlib'
        require 'erb'
        require 'uri'
        
        
        Severity: Major
        Found in library/rubygems/server.rb - About 1 day to fix

          Class TestCase has 71 methods (exceeds 20 allowed). Consider refactoring.
          Open

          class Gem::TestCase < MiniTest::Unit::TestCase
          
            attr_accessor :fetcher # :nodoc:
          
            attr_accessor :gem_repo # :nodoc:
          Severity: Major
          Found in library/rubygems/test_case.rb - About 1 day to fix
            Severity
            Category
            Status
            Source
            Language