chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Too many nested blocks (8/5)
Open

            while i < len(src):
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Used when a function or a method has too many nested blocks. This makes the code less understandable and maintainable.

Too many nested blocks (8/5)
Open

            while i < len(src):
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Used when a function or a method has too many nested blocks. This makes the code less understandable and maintainable.

Wrong hanging indentation before block (add 4 spaces).
Open

                'Ä',
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO 'Ä', ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                'Ê',
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO 'Ê', ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                'ß',
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO 'ß', ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                            and (rule not in '(-<^$')
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO and (rule not in '(-<^$') ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                                        and (
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO and ( ^ |

Too many branches (20/12)
Open

        def _initialize_phonet(lang: str) -> None:
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Used when a function or method has too many branches, making it hard to follow.

Too many branches (65/12)
Open

        def _phonet(term: str, mode: int, lang: str) -> str:
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Used when a function or method has too many branches, making it hard to follow.

Too many statements (210/50)
Open

        def _phonet(term: str, mode: int, lang: str) -> str:
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Used when a function or method has too many statements. You should then split it in smaller functions / methods.

Too many statements (256/50)
Open

    def encode(self, word: str) -> str:
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Used when a function or method has too many statements. You should then split it in smaller functions / methods.

Wrong hanging indentation before block (add 4 spaces).
Open

                    'D',

TODO 'D', ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                    _slavo_germanic()

TODO slavogermanic() ^ |

Unnecessary elif after continue
Open

                    if (current > 0) and not _is_vowel(current - 1):

Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.

Wrong hanging indentation before block (add 4 spaces).
Open

                'Ï',
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO 'Ï', ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                'Õ',
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO 'Õ', ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                            _phonet_rules[pos + mode] is None
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO phonetrules[pos + mode] is None ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                                            i + matches0 : i + matches0 + 1
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO i + matches0 : i + matches0 + 1 ^ |

Wrong hanging indentation before block (add 4 spaces).
Open

                                    and rule
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO and rule ^ |

Variable name ch doesn't conform to snake_case naming style
Open

                    ch = cast(str, _phonet_rules[i])[0]
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Severity
Category
Status
Source
Language