chrislit/abydos

View on GitHub

Showing 41 of 4,191 total issues

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

_SEP_EXACT_APPROX_COMMON = (
    ('h', '', '$', ''),
    # VOICED - UNVOICED CONSONANTS
    ('b', '', '[fktSs]', 'p'),
    ('b', '', 'p', ''),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 438..486
abydos/phonetic/_beider_morse_data.py on lines 641..692
abydos/phonetic/_beider_morse_data.py on lines 4266..4314
abydos/phonetic/_beider_morse_data.py on lines 4462..4513

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

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

_ASH_APPROX_GERMAN = (
    ('I', '', '$', 'i'),
    ('I', '[aeiAEIOUouQY]', '', 'i'),
    ('I', '', '[^k]$', 'i'),
    ('Ik', '[lr]', '$', '(ik|Qk)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 438..486
abydos/phonetic/_beider_morse_data.py on lines 641..692
abydos/phonetic/_beider_morse_data.py on lines 3156..3207
abydos/phonetic/_beider_morse_data.py on lines 4462..4513

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

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

_ASH_EXACT_APPROX_COMMON = (
    ('h', '', '$', ''),
    # VOICED - UNVOICED CONSONANTS
    ('b', '', '[fktSs]', 'p'),
    ('b', '', 'p', ''),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 438..486
abydos/phonetic/_beider_morse_data.py on lines 641..692
abydos/phonetic/_beider_morse_data.py on lines 3156..3207
abydos/phonetic/_beider_morse_data.py on lines 4266..4314

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

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

_GEN_APPROX_GERMAN = (
    ('I', '', '$', 'i'),
    ('I', '[aeiAEIOUouQY]', '', 'i'),
    ('I', '', '[^k]$', 'i'),
    ('Ik', '[lr]', '$', '(ik|Qk)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 641..692
abydos/phonetic/_beider_morse_data.py on lines 3156..3207
abydos/phonetic/_beider_morse_data.py on lines 4266..4314
abydos/phonetic/_beider_morse_data.py on lines 4462..4513

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

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

_GEN_EXACT_APPROX_COMMON = (
    ('h', '', '$', ''),
    # VOICED - UNVOICED CONSONANTS
    ('b', '', '[fktSs]', 'p'),
    ('b', '', 'p', ''),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 438..486
abydos/phonetic/_beider_morse_data.py on lines 3156..3207
abydos/phonetic/_beider_morse_data.py on lines 4266..4314
abydos/phonetic/_beider_morse_data.py on lines 4462..4513

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

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

_GEN_RULES_HEBREW = (
    ('אי', '', '', 'i'),
    ('עי', '', '', 'i'),
    ('עו', '', '', 'VV'),
    ('או', '', '', 'VV'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 3 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 2464..2515
abydos/phonetic/_beider_morse_data.py on lines 3608..3647
abydos/phonetic/_beider_morse_data.py on lines 5524..5563

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

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

_GEN_RULES_LATVIAN = (
    # CONSONANTS
    ('č', '', '', 'tS'),
    ('ģ', '', '', '(d|dj)'),
    # ("ķ","","","(t|ti)"),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 3 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 2296..2335
abydos/phonetic/_beider_morse_data.py on lines 3608..3647
abydos/phonetic/_beider_morse_data.py on lines 5524..5563

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

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

_SEP_RULES_HEBREW = (
    ('אי', '', '', 'i'),
    ('עי', '', '', 'i'),
    ('עו', '', '', 'VV'),
    ('או', '', '', 'VV'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 3 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 2296..2335
abydos/phonetic/_beider_morse_data.py on lines 2464..2515
abydos/phonetic/_beider_morse_data.py on lines 5524..5563

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

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

_ASH_RULES_HEBREW = (
    ('אי', '', '', 'i'),
    ('עי', '', '', 'i'),
    ('עו', '', '', 'VV'),
    ('או', '', '', 'VV'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 3 other locations - About 2 days to fix
abydos/phonetic/_beider_morse_data.py on lines 2296..2335
abydos/phonetic/_beider_morse_data.py on lines 2464..2515
abydos/phonetic/_beider_morse_data.py on lines 3608..3647

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

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

_ASH_APPROX_RUSSIAN = (
    # VOWELS
    ('I', '', '$', 'i'),
    ('I', '', '[^k]$', 'i'),
    ('Ik', '[lr]', '$', '(ik|Qk)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 1 day to fix
abydos/phonetic/_beider_morse_data.py on lines 578..605

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

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

_GEN_APPROX_RUSSIAN = (
    # VOWELS
    ('I', '', '$', 'i'),
    ('I', '', '[^k]$', 'i'),
    ('Ik', '[lr]', '$', '(ik|Qk)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 1 day to fix
abydos/phonetic/_beider_morse_data.py on lines 4391..4418

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

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

_GEN_APPROX_ENGLISH = (
    # VOWELS
    ('I', '', '[^aEIeiou]e', '(Q|i|D)'),  # like in "five"
    ('I', '', '$', 'i'),
    ('I', '[aEIeiou]', '', 'i'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 1 day to fix
abydos/phonetic/_beider_morse_data.py on lines 4205..4235

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

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

_ASH_APPROX_ENGLISH = (
    # VOWELS
    ('I', '', '[^aEIeiou]e', '(Q|i|D)'),  # like in "five"
    ('I', '', '$', 'i'),
    ('I', '[aEIeiou]', '', 'i'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 1 day to fix
abydos/phonetic/_beider_morse_data.py on lines 391..421

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

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

_GEN_EXACT_COMMON = (
    ('H', '', '', ''),
    # VOICED - UNVOICED CONSONANTS
    ('s', '[^t]', '[bgZd]', 'z'),
    ('Z', '', '[pfkst]', 'S'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 3 hrs to fix
abydos/phonetic/_beider_morse_data.py on lines 4520..4531

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

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

_ASH_EXACT_COMMON = (
    ('H', '', '', 'h'),
    # VOICED - UNVOICED CONSONANTS
    ('s', '[^t]', '[bgZd]', 'z'),
    ('Z', '', '[pfkst]', 'S'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 3 hrs to fix
abydos/phonetic/_beider_morse_data.py on lines 702..713

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

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

_GEN_APPROX_ARABIC = (
    ('1a', '', '', '(D|a)'),
    ('1i', '', '', '(D|i|e)'),
    ('1u', '', '', '(D|u|o)'),
    ('j1', '', '', '(ja|je|jo|ju|j)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 2 hrs to fix
abydos/phonetic/_beider_morse_data.py on lines 4448..4457

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

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

_ASH_EXACT_ANY = (
    ('A', '', '', 'a'),
    ('B', '', '', 'a'),
    ('E', '', '', 'e'),
    ('F', '', '', 'e'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 2 hrs to fix
abydos/phonetic/_beider_morse_data.py on lines 169..178

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

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

Severity: Major
Found in abydos/corpus/__init__.py and 1 other location - About 1 hr to fix
abydos/compression/__init__.py on lines 0..54

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

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

Severity: Major
Found in abydos/compression/__init__.py and 1 other location - About 1 hr to fix
abydos/corpus/__init__.py on lines 0..64

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

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

_GEN_EXACT_POLISH = (
    ('B', '', '', 'a'),
    ('F', '', '', 'e'),
    ('P', '', '', 'o'),
    ('E', '', '', 'e'),
Severity: Minor
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 50 mins to fix
abydos/phonetic/_beider_morse_data.py on lines 4554..4559

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

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