chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Line too long (108/100)
Open

# A, E, I, O, P, U should create variants, but a, e, i, o, u should not create any new variant  # noqa: E501

Used when a line is longer than a given number of characters.

Line too long (129/100)
Open

# pattern is a sequence of characters that might appear after a word has been transliterated into phonetic alphabet  # noqa: E501

Used when a line is longer than a given number of characters.

Consider using enumerate instead of iterating with range and len
Open

        for i in range(len(word)):
Severity: Info
Found in abydos/phonetic/_koelner.py by pylint

Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.

Consider using enumerate instead of iterating with range and len
Open

        for i in range(len(alpha)):
Severity: Info
Found in abydos/phonetic/_alpha_sis.py by pylint

Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.

Line too long (105/100)
Open

                        ]  # type: Union[int, str, Tuple[Union[int, str], Union[int, str]]]  # noqa: E501

Used when a line is longer than a given number of characters.

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

                    and ename[i + 1 : i + 2] not in self._uc_v_set
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

TODO and ename[i + 1 : i + 2] not in self.ucv_set ^ |

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

                    i > 0
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

TODO i > 0 ^ |

Unnecessary elif after continue
Open

                if ename[i + 1 : i + 2] == 'H' and not (
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

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.

Too few public methods (1/2)
Open

class OmissionKey(_Fingerprint):

Used when class has too few public methods, so be sure it's really worth it.

Unnecessary use of a comprehension
Open

        for x, y in zip(

Instead of using an identitiy comprehension, consider using the list, dict or set constructor. It is faster and simpler.

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

                            len(word) > 1

TODO len(word) > 1 ^ |

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

                ('dg', '2g'),
Severity: Info
Found in abydos/phonetic/_caverphone.py by pylint

TODO ('dg', '2g'), ^ |

Too many branches (29/12)
Open

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

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

Line too long (108/100)
Open

# A, E, I, O, P, U should create variants, but a, e, i, o, u should not create any new variant  # noqa: E501

Used when a line is longer than a given number of characters.

Too many branches (14/12)
Open

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

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

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

                and i > 0
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

TODO and i > 0 ^ |

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

                    i - 1 > 0
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

TODO i - 1 > 0 ^ |

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

                    and i + 2 <= elen
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

TODO and i + 2 <= elen ^ |

Too many branches (32/12)
Open

    def encode(self, word: str) -> str:

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

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

                ('ci', 'si'),
Severity: Info
Found in abydos/phonetic/_caverphone.py by pylint

TODO ('ci', 'si'), ^ |

Severity
Category
Status
Source
Language