chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

                                and (src[i + matches] in rule[1:])
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO and (src[i + matches] in rule[1:]) ^ |

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

                                    (j > 0)
Severity: Info
Found in abydos/phonetic/_phonet.py by pylint

TODO (j > 0) ^ |

Too many nested blocks (6/5)
Open

            for i in range(len(_phonet_rules)):
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 (9/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

                            and not _is_vowel(pos + 1)

TODO and not isvowel(pos + 1) ^ |

Too many branches (16/12)
Open

    def encode(self, word: Union[str, Sequence[str]]) -> str:
Severity: Info
Found in abydos/phonetic/_spfc.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

                lokal_ordet[0:1] == 'C' and lokal_ordet[1:2] in self._uc_c_set
Severity: Info
Found in abydos/phonetic/_sfinx_bis.py by pylint

TODO lokalordet[0:1] == 'C' and lokalordet[1:2] in self.ucc_set ^ |

Line too long (103/100)
Open

# e.g., ^ means start of word, $ Means End Of Word, [^ei] means anything but e or i, etc.  # noqa: E501

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

Line too long (142/100)
Open

    # {a,o} are totally interchangeable if non-stressed; in German "a/o" can actually be from "ä/ö" (that are equivalent to "e")  # noqa: E501

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

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

        zero_pad: bool = True,
Severity: Info
Found in abydos/phonetic/_phonic.py by pylint

TODO zero_pad: bool = True, ^ |

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

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

TODO i + 1 == elen or ename[i + 2 : i + 3] not in self.ucv_set ^ |

Unnecessary elif after continue
Open

                if (
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 many statements (101/50)
Open

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

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

Method could be a function
Open

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

Used when a method doesn't use its bound instance, and so could be written as a function.

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

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

TODO and i + 1 <= elen ^ |

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

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

TODO and ename[i + 1] in self._frontv ^ |

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

                    and ename[i + 2] in 'OA'
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

TODO and ename[i + 2] in 'OA' ^ |

Too few public methods (1/2)
Open

class BWTRLEF(_Fingerprint):
Severity: Info
Found in abydos/fingerprint/_bwtrlef.py by pylint

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

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

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

TODO ('b', 'p'), ^ |

Too many statements (66/50)
Open

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

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

Severity
Category
Status
Source
Language