chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Too many statements (52/50)
Open

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

                    and ename[i + 2] in {'A', 'O'}
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

TODO and ename[i + 2] in {'A', 'O'} ^ |

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

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

TODO ('q', 'k'), ^ |

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

                and lokal_ordet[1:2] in self._harde_vokaler
Severity: Info
Found in abydos/phonetic/_sfinx_bis.py by pylint

TODO and lokalordet[1:2] in self.harde_vokaler ^ |

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

                lokal_ordet[0:2] == 'SK'
Severity: Info
Found in abydos/phonetic/_sfinx_bis.py by pylint

TODO lokal_ordet[0:2] == 'SK' ^ |

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.

Line too long (116/100)
Open

# if "pattern" matches and acceptance is true, name is in one of the languages indicated and no others  # noqa: E501

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

Line too long (105/100)
Open

# These rules are applied after the word has been transliterated into the phonetic alphabet  # noqa: E501

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

Line too long (107/100)
Open

# if "pattern" matches and acceptance is false, name is not in any of the languages indicated  # noqa: E501

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

Too many statements (54/50)
Open

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

                    name
Severity: Info
Found in abydos/phonetic/_phonex.py by pylint

TODO name ^ |

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

                        and word[pos + len(sstr)] in self._uc_v_set

TODO and word[pos + len(sstr)] in self.ucv_set ^ |

Too many statements (55/50)
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 statements. You should then split it in smaller functions / methods.

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

                ename[i] not in {'G', 'T'}
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

TODO ename[i] not in {'G', 'T'} ^ |

Unnecessary else after continue
Open

                if i > 0 and ename[i - 1] == 'C':
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 _Fingerprint:
Severity: Info
Found in abydos/fingerprint/_fingerprint.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

        most_common: Tuple[str, ...] = MOST_COMMON_LETTERS_CG,
Severity: Info
Found in abydos/fingerprint/_count.py by pylint

TODO mostcommon: Tuple[str, ...] = MOSTCOMMONLETTERSCG, ^ |

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

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

TODO ('tch', '2ch'), ^ |

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

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

TODO ('v', 'f'), ^ |

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

                and lokal_ordet[1:2] in self._mjuka_vokaler
Severity: Info
Found in abydos/phonetic/_sfinx_bis.py by pylint

TODO and lokalordet[1:2] in self.mjuka_vokaler ^ |

Severity
Category
Status
Source
Language