chrislit/abydos

View on GitHub

Showing 41 of 4,191 total issues

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

_GEN_RULES_POLISH = (
    # CONVERTING FEMININE TO MASCULINE
    ('ska', '', '$', 'ski'),
    ('cka', '', '$', 'tski'),
    ('lowa', '', '$', '(lova|lof|l|el)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 1 wk to fix
abydos/phonetic/_beider_morse_data.py on lines 5634..5783

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

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_RULES_POLISH = (
    # CONVERTING FEMININE TO MASCULINE
    ('ska', '', '$', 'ski'),
    ('cka', '', '$', 'tski'),
    ('lowa', '', '$', '(lova|lof|l|el)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 1 wk to fix
abydos/phonetic/_beider_morse_data.py on lines 2521..2670

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

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_RULES_GERMAN = (
    # CONSONANTS
    ('ewitsch', '', '$', 'evitS'),
    ('owitsch', '', '$', 'ovitS'),
    ('evitsch', '', '$', 'evitS'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 5 days to fix
abydos/phonetic/_beider_morse_data.py on lines 5418..5518

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

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_RULES_GERMAN = (
    # CONSONANTS
    ('ziu', '', '', 'tsu'),
    ('zia', '', '', 'tsa'),
    ('zio', '', '', 'tso'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 5 days to fix
abydos/phonetic/_beider_morse_data.py on lines 1986..2086

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

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

_GEN_APPROX_ANY = (
    # VOWELS
    # "ALL" DIPHTHONGS are interchangeable BETWEEN THEM and with monophthongs of which they are composed ("D" means "diphthong")  # noqa: E501
    # {a,o} are totally interchangeable if non-stressed; in German "a/o" can actually be from "ä/ö" (that are equivalent to "e")  # noqa: E501
    # {i,e} are interchangeable if non-stressed, while in German "u" can actually be from "ü" (that is equivalent to "i")  # noqa: E501
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 2 other locations - About 5 days to fix
abydos/phonetic/_beider_morse_data.py on lines 1785..1884
abydos/phonetic/_beider_morse_data.py on lines 4574..4664

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

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

_GEN_RULES_ENGLISH = (
    # CONSONANTS
    ('’', '', '', ''),  # O’Neill
    ("'", '', '', ''),  # O’Neill
    ('mc', '^', '', 'mak'),  # McDonald
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 2 other locations - About 5 days to fix
abydos/phonetic/_beider_morse_data.py on lines 59..165
abydos/phonetic/_beider_morse_data.py on lines 4574..4664

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

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

_ASH_HEBREW_COMMON = (
    ('ts', '', '', 'C'),  # for not confusion Gutes [=guts] and Guts [=guc]
    ('tS', '', '', 'C'),  # same reason
    ('S', '', '', 's'),
    ('p', '', '', 'f'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 2 other locations - About 5 days to fix
abydos/phonetic/_beider_morse_data.py on lines 59..165
abydos/phonetic/_beider_morse_data.py on lines 1785..1884

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

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_CYRILLIC = (
    ('ця', '', '', 'tsa'),
    ('цю', '', '', 'tsu'),
    ('циа', '', '', 'tsa'),
    ('цие', '', '', 'tse'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 3 other locations - About 4 days to fix
abydos/phonetic/_beider_morse_data.py on lines 784..864
abydos/phonetic/_beider_morse_data.py on lines 1588..1663
abydos/phonetic/_beider_morse_data.py on lines 2675..2762

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

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_PORTUGUESE = (
    ('kh', '', '', 'x'),  # foreign
    ('ch', '', '', 'S'),
    ('ss', '', '', 's'),
    ('sc', '', '[ei]', 's'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 3 other locations - About 4 days to fix
abydos/phonetic/_beider_morse_data.py on lines 784..864
abydos/phonetic/_beider_morse_data.py on lines 1588..1663
abydos/phonetic/_beider_morse_data.py on lines 5160..5235

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

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_CYRILLIC = (
    ('ця', '', '', 'tsa'),
    ('цю', '', '', 'tsu'),
    ('циа', '', '', 'tsa'),
    ('цие', '', '', 'tse'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 3 other locations - About 4 days to fix
abydos/phonetic/_beider_morse_data.py on lines 784..864
abydos/phonetic/_beider_morse_data.py on lines 2675..2762
abydos/phonetic/_beider_morse_data.py on lines 5160..5235

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

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_HEBREW_COMMON = (
    ('ts', '', '', 'C'),  # for not confusion Gutes [=guts] and Guts [=guc]
    ('tS', '', '', 'C'),  # same reason
    ('S', '', '', 's'),
    ('p', '', '', 'f'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 3 other locations - About 4 days to fix
abydos/phonetic/_beider_morse_data.py on lines 1588..1663
abydos/phonetic/_beider_morse_data.py on lines 2675..2762
abydos/phonetic/_beider_morse_data.py on lines 5160..5235

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

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

_SEP_RULES_PORTUGUESE = (
    ('kh', '', '', 'x'),  # foreign
    ('ch', '', '', 'S'),
    ('ss', '', '', 's'),
    ('sc', '', '[ei]', 's'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 4 days to fix
abydos/phonetic/_beider_morse_data.py on lines 2091..2180

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

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_RULES_GREEK = (
    (
        'αυ',
        '',
        '$',
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 4 days to fix
abydos/phonetic/_beider_morse_data.py on lines 3709..3795

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

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

_SEP_RULES_SPANISH = (
    # Includes both Spanish (Castillian) & Catalan
    # CONSONANTS
    ('ñ', '', '', '(n|nj)'),
    ('ny', '', '', 'nj'),  # Catalan
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 3 days to fix
abydos/phonetic/_beider_morse_data.py on lines 510..566
abydos/phonetic/_beider_morse_data.py on lines 2341..2400
abydos/phonetic/_beider_morse_data.py on lines 4326..4382
abydos/phonetic/_beider_morse_data.py on lines 5569..5628

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

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_POLISH = (
    ('aiB', '', '[bp]', '(D|Dm)'),
    ('oiB', '', '[bp]', '(D|Dm)'),
    ('uiB', '', '[bp]', '(D|Dm)'),
    ('eiB', '', '[bp]', '(D|Dm)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 3 days to fix
abydos/phonetic/_beider_morse_data.py on lines 2341..2400
abydos/phonetic/_beider_morse_data.py on lines 3801..3869
abydos/phonetic/_beider_morse_data.py on lines 4326..4382
abydos/phonetic/_beider_morse_data.py on lines 5569..5628

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

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_POLISH = (
    ('aiB', '', '[bp]', '(D|Dm)'),
    ('oiB', '', '[bp]', '(D|Dm)'),
    ('uiB', '', '[bp]', '(D|Dm)'),
    ('eiB', '', '[bp]', '(D|Dm)'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 3 days to fix
abydos/phonetic/_beider_morse_data.py on lines 510..566
abydos/phonetic/_beider_morse_data.py on lines 2341..2400
abydos/phonetic/_beider_morse_data.py on lines 3801..3869
abydos/phonetic/_beider_morse_data.py on lines 5569..5628

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

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_RULES_HUNGARIAN = (
    # CONSONANTS
    ('sz', '', '', 's'),
    ('zs', '', '', 'Z'),
    ('cs', '', '', 'tS'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 3 days to fix
abydos/phonetic/_beider_morse_data.py on lines 510..566
abydos/phonetic/_beider_morse_data.py on lines 2341..2400
abydos/phonetic/_beider_morse_data.py on lines 3801..3869
abydos/phonetic/_beider_morse_data.py on lines 4326..4382

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

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_RULES_HUNGARIAN = (
    # CONSONANTS
    ('sz', '', '', 's'),
    ('zs', '', '', 'Z'),
    ('cs', '', '', 'tS'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 4 other locations - About 3 days to fix
abydos/phonetic/_beider_morse_data.py on lines 510..566
abydos/phonetic/_beider_morse_data.py on lines 3801..3869
abydos/phonetic/_beider_morse_data.py on lines 4326..4382
abydos/phonetic/_beider_morse_data.py on lines 5569..5628

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

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_RULES_DUTCH = (
    # CONSONANTS
    ('ssj', '', '', 'S'),
    ('sj', '', '', 'S'),
    ('ch', '', '', 'x'),
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 3 days to fix
abydos/phonetic/_beider_morse_data.py on lines 2937..3002

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

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_RULES_SPANISH = (
    # Includes both Spanish (Castillian) & Catalan
    # CONSONANTS
    ('ñ', '', '', '(n|nj)'),
    ('ny', '', '', 'nj'),  # Catalan
Severity: Major
Found in abydos/phonetic/_beider_morse_data.py and 1 other location - About 3 days to fix
abydos/phonetic/_beider_morse_data.py on lines 1721..1779

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

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