ManaManaFramework/manamana

View on GitHub

Showing 22 of 36 total issues

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

    if _goto_level <= _resume
    _acts = _lexer_from_state_actions[cs]
    _nacts = _lexer_actions[_acts]
    _acts += 1
    while _nacts > 0
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 1 other location - About 6 hrs to fix
lib/manamana/rdsl/lexer.rb on lines 300..368

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

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

    if _goto_level <= _resume
    _acts = _lexer_from_state_actions[cs]
    _nacts = _lexer_actions[_acts]
    _acts += 1
    while _nacts > 0
Severity: Major
Found in lib/manamana/rdsl/lexer.rb and 1 other location - About 6 hrs to fix
lib/manamana/tdsl/lexer.rb on lines 303..371

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

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

self._lexer_trans_targs = [
    2, 0, 55, 54, 3, 57, 6, 7, 
    8, 9, 10, 11, 54, 13, 14, 15, 
    16, 17, 18, 19, 20, 21, 22, 23, 
    25, 26, 27, 28, 30, 31, 32, 33, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 1 other location - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 169..179

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

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

self._lexer_trans_actions = [
    0, 0, 5, 17, 0, 5, 0, 0, 
    0, 0, 0, 0, 7, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 1 other location - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 153..163

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

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

self._lexer_key_offsets = [
    0, 0, 1, 11, 23, 24, 25, 26, 
    27, 28, 29, 30, 31, 32, 33, 34, 
    35, 36, 37, 38, 39, 40, 41, 42, 
    43, 44, 45, 46, 47, 48, 49, 50, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 6 other locations - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 77..86
lib/manamana/tdsl/lexer.rb on lines 92..101
lib/manamana/tdsl/lexer.rb on lines 107..116
lib/manamana/tdsl/lexer.rb on lines 185..194
lib/manamana/tdsl/lexer.rb on lines 200..209
lib/manamana/tdsl/lexer.rb on lines 215..224

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

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

self._lexer_to_state_actions = [
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 6 other locations - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 35..44
lib/manamana/tdsl/lexer.rb on lines 77..86
lib/manamana/tdsl/lexer.rb on lines 92..101
lib/manamana/tdsl/lexer.rb on lines 107..116
lib/manamana/tdsl/lexer.rb on lines 200..209
lib/manamana/tdsl/lexer.rb on lines 215..224

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

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

self._lexer_single_lengths = [
    0, 1, 2, 4, 1, 1, 1, 1, 
    1, 1, 1, 1, 1, 1, 1, 1, 
    1, 1, 1, 1, 1, 1, 1, 1, 
    1, 1, 1, 1, 1, 1, 1, 1, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 6 other locations - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 35..44
lib/manamana/tdsl/lexer.rb on lines 92..101
lib/manamana/tdsl/lexer.rb on lines 107..116
lib/manamana/tdsl/lexer.rb on lines 185..194
lib/manamana/tdsl/lexer.rb on lines 200..209
lib/manamana/tdsl/lexer.rb on lines 215..224

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

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

self._lexer_range_lengths = [
    0, 0, 4, 4, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 6 other locations - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 35..44
lib/manamana/tdsl/lexer.rb on lines 77..86
lib/manamana/tdsl/lexer.rb on lines 107..116
lib/manamana/tdsl/lexer.rb on lines 185..194
lib/manamana/tdsl/lexer.rb on lines 200..209
lib/manamana/tdsl/lexer.rb on lines 215..224

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

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

self._lexer_eof_trans = [
    0, 0, 0, 4, 4, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 6 other locations - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 35..44
lib/manamana/tdsl/lexer.rb on lines 77..86
lib/manamana/tdsl/lexer.rb on lines 92..101
lib/manamana/tdsl/lexer.rb on lines 107..116
lib/manamana/tdsl/lexer.rb on lines 185..194
lib/manamana/tdsl/lexer.rb on lines 200..209

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

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

self._lexer_from_state_actions = [
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 6 other locations - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 35..44
lib/manamana/tdsl/lexer.rb on lines 77..86
lib/manamana/tdsl/lexer.rb on lines 92..101
lib/manamana/tdsl/lexer.rb on lines 107..116
lib/manamana/tdsl/lexer.rb on lines 185..194
lib/manamana/tdsl/lexer.rb on lines 215..224

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

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

self._lexer_index_offsets = [
    0, 0, 2, 9, 18, 20, 22, 24, 
    26, 28, 30, 32, 34, 36, 38, 40, 
    42, 44, 46, 48, 50, 52, 54, 56, 
    58, 60, 62, 64, 66, 68, 70, 72, 
Severity: Major
Found in lib/manamana/tdsl/lexer.rb and 6 other locations - About 1 hr to fix
lib/manamana/tdsl/lexer.rb on lines 35..44
lib/manamana/tdsl/lexer.rb on lines 77..86
lib/manamana/tdsl/lexer.rb on lines 92..101
lib/manamana/tdsl/lexer.rb on lines 185..194
lib/manamana/tdsl/lexer.rb on lines 200..209
lib/manamana/tdsl/lexer.rb on lines 215..224

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

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

self._lexer_trans_targs = [
    23, 2, 27, 6, 26, 9, 4, 5, 
    3, 10, 28, 1, 13, 0, 29, 23, 
    15, 33, 20, 31, 17, 14, 18, 32, 
    19, 23, 22, 34, 23, 24, 12, 23, 
Severity: Minor
Found in lib/manamana/rdsl/lexer.rb and 1 other location - About 55 mins to fix
lib/manamana/rdsl/lexer.rb on lines 150..157

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

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

self._lexer_trans_actions = [
    17, 0, 3, 0, 3, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 3, 15, 
    0, 3, 0, 3, 0, 0, 0, 3, 
    0, 19, 0, 24, 5, 3, 0, 13, 
Severity: Minor
Found in lib/manamana/rdsl/lexer.rb and 1 other location - About 55 mins to fix
lib/manamana/rdsl/lexer.rb on lines 137..144

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

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

self._lexer_to_state_actions = [
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 21, 
    0, 0, 0, 0, 0, 0, 0, 0, 
Severity: Major
Found in lib/manamana/rdsl/lexer.rb and 6 other locations - About 40 mins to fix
lib/manamana/rdsl/lexer.rb on lines 35..41
lib/manamana/rdsl/lexer.rb on lines 74..80
lib/manamana/rdsl/lexer.rb on lines 86..92
lib/manamana/rdsl/lexer.rb on lines 98..104
lib/manamana/rdsl/lexer.rb on lines 175..181
lib/manamana/rdsl/lexer.rb on lines 187..193

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

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

self._lexer_eof_trans = [
    0, 1, 1, 1, 1, 1, 1, 1, 
    1, 1, 1, 1, 0, 0, 16, 16, 
    16, 16, 16, 16, 16, 16, 26, 0, 
    32, 32, 32, 32, 37, 38, 38, 38, 
Severity: Major
Found in lib/manamana/rdsl/lexer.rb and 6 other locations - About 40 mins to fix
lib/manamana/rdsl/lexer.rb on lines 35..41
lib/manamana/rdsl/lexer.rb on lines 74..80
lib/manamana/rdsl/lexer.rb on lines 86..92
lib/manamana/rdsl/lexer.rb on lines 98..104
lib/manamana/rdsl/lexer.rb on lines 163..169
lib/manamana/rdsl/lexer.rb on lines 175..181

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

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

self._lexer_index_offsets = [
    0, 0, 12, 22, 33, 42, 45, 47, 
    49, 51, 53, 55, 57, 59, 64, 76, 
    86, 88, 90, 92, 95, 97, 99, 102, 
    112, 117, 122, 126, 129, 131, 136, 141, 
Severity: Major
Found in lib/manamana/rdsl/lexer.rb and 6 other locations - About 40 mins to fix
lib/manamana/rdsl/lexer.rb on lines 35..41
lib/manamana/rdsl/lexer.rb on lines 74..80
lib/manamana/rdsl/lexer.rb on lines 86..92
lib/manamana/rdsl/lexer.rb on lines 163..169
lib/manamana/rdsl/lexer.rb on lines 175..181
lib/manamana/rdsl/lexer.rb on lines 187..193

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

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

self._lexer_single_lengths = [
    0, 7, 5, 6, 4, 2, 1, 1, 
    1, 1, 1, 1, 1, 1, 7, 5, 
    1, 1, 1, 2, 1, 1, 1, 4, 
    3, 4, 2, 2, 1, 3, 4, 2, 
Severity: Major
Found in lib/manamana/rdsl/lexer.rb and 6 other locations - About 40 mins to fix
lib/manamana/rdsl/lexer.rb on lines 35..41
lib/manamana/rdsl/lexer.rb on lines 86..92
lib/manamana/rdsl/lexer.rb on lines 98..104
lib/manamana/rdsl/lexer.rb on lines 163..169
lib/manamana/rdsl/lexer.rb on lines 175..181
lib/manamana/rdsl/lexer.rb on lines 187..193

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

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

self._lexer_from_state_actions = [
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 1, 
    0, 0, 0, 0, 0, 0, 0, 0, 
Severity: Major
Found in lib/manamana/rdsl/lexer.rb and 6 other locations - About 40 mins to fix
lib/manamana/rdsl/lexer.rb on lines 35..41
lib/manamana/rdsl/lexer.rb on lines 74..80
lib/manamana/rdsl/lexer.rb on lines 86..92
lib/manamana/rdsl/lexer.rb on lines 98..104
lib/manamana/rdsl/lexer.rb on lines 163..169
lib/manamana/rdsl/lexer.rb on lines 187..193

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

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

self._lexer_key_offsets = [
    0, 0, 15, 28, 42, 54, 56, 57, 
    58, 59, 60, 61, 62, 63, 70, 85, 
    98, 99, 100, 101, 103, 104, 105, 108, 
    122, 127, 131, 135, 137, 138, 143, 147, 
Severity: Major
Found in lib/manamana/rdsl/lexer.rb and 6 other locations - About 40 mins to fix
lib/manamana/rdsl/lexer.rb on lines 74..80
lib/manamana/rdsl/lexer.rb on lines 86..92
lib/manamana/rdsl/lexer.rb on lines 98..104
lib/manamana/rdsl/lexer.rb on lines 163..169
lib/manamana/rdsl/lexer.rb on lines 175..181
lib/manamana/rdsl/lexer.rb on lines 187..193

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

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

self._lexer_range_lengths = [
    0, 4, 4, 4, 4, 0, 0, 0, 
    0, 0, 0, 0, 0, 3, 4, 4, 
    0, 0, 0, 0, 0, 0, 1, 5, 
    1, 0, 1, 0, 0, 1, 0, 1, 
Severity: Major
Found in lib/manamana/rdsl/lexer.rb and 6 other locations - About 40 mins to fix
lib/manamana/rdsl/lexer.rb on lines 35..41
lib/manamana/rdsl/lexer.rb on lines 74..80
lib/manamana/rdsl/lexer.rb on lines 98..104
lib/manamana/rdsl/lexer.rb on lines 163..169
lib/manamana/rdsl/lexer.rb on lines 175..181
lib/manamana/rdsl/lexer.rb on lines 187..193

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

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