rubinius/rubinius

View on GitHub

Showing 220 of 1,541 total issues

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

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

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

  ["A0",0xA0],
  ["A1",0x1E02],
  ["A2",0x1E03],
  ["A3",0xA3],
  ["A4",0x10A],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  ["A0",0xA0],
  ["A1",0x104],
  ["A2",0x2D8],
  ["A3",0x141],
  ["A4",0xA4],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  ["A0",0xA0],
  ["A1",0xA1],
  ["A2",0xA2],
  ["A3",0xA3],
  ["A4",0xA4],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  ["A0",0xA0],
  ["A1",0xA1],
  ["A2",0xA2],
  ["A3",0xA3],
  ["A4",0xA4],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97

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

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

  ["A0",0xA0],
  ["A1",0x104],
  ["A2",0x112],
  ["A3",0x122],
  ["A4",0x12A],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  ["A0",0xA0],
  ["A1",0x201D],
  ["A2",0xA2],
  ["A3",0xA3],
  ["A4",0xA4],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  ["A0",0xA0],
  ["A1",0x104],
  ["A2",0x138],
  ["A3",0x156],
  ["A4",0xA4],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  ["A0",0xA0],
  ["A1",0x401],
  ["A2",0x402],
  ["A3",0x403],
  ["A4",0x404],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  ["A0", 0x00A0],
  ["A1", 0x0104],
  ["A2", 0x0105],
  ["A3", 0x0141],
  ["A4", 0x20AC],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  ["A0",0xA0],
  ["A1",0xA1],
  ["A2",0xA2],
  ["A3",0xA3],
  ["A4",0x20AC],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/iso-8859-15-tbl.rb and 9 other locations - About 1 day to fix
build/libraries/oniguruma/enc/trans/iso-8859-1-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-10-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-13-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-14-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-16-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-2-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-4-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-5-tbl.rb on lines 2..97
build/libraries/oniguruma/enc/trans/iso-8859-9-tbl.rb on lines 2..97

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

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

  module GID
    class << self
      def change_privilege(gid)
        gid = Rubinius::Type.coerce_to gid, Integer, :to_int

Severity: Major
Found in core/process.rb and 1 other location - About 4 hrs to fix
core/process.rb on lines 669..725

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

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

  module UID
    class << self
      def change_privilege(uid)
        uid = Rubinius::Type.coerce_to uid, Integer, :to_int

Severity: Major
Found in core/process.rb and 1 other location - About 4 hrs to fix
core/process.rb on lines 732..788

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

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

class RaiseExceptionMatcher
  def initialize(exception, message, &block)
    @exception = exception
    @message = message
    @block = block
Severity: Major
Found in mspec/lib/mspec/matchers/raise_exception.rb and 1 other location - About 3 hrs to fix
mspec/lib/mspec/matchers/raise_error.rb on lines 1..42

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

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