chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Consider using enumerate instead of iterating with range and len
Open

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

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

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

        self, lname: str, fname: str = '', qual: str = '', normalize: int = 0

TODO self, lname: str, fname: str = '', qual: str = '', normalize: int = 0 ^ |

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

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

TODO ('cy', 'sy'), ^ |

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

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

TODO ('z', 's'), ^ |

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

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

TODO or lokalordet[0:1] in self.harde_vokaler ^ |

Line too long (102/100)
Open

    ),  # Applebaum < Appelbaum (English + blend English-something forms as Finklestein)  # noqa: E501

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

Line too long (119/100)
Open

    # ("c","","[aou]","(k|C[294912])"), # "C" means that the actual letter could be "ç" (cedille omitted)  # noqa: E501

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

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

                        pos + len(sstr) < len(word)

TODO pos + len(sstr) < len(word) ^ |

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

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

TODO i > 0 ^ |

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

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

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

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 + 2 : i + 3] not in self._uc_v_set
Severity: Info
Found in abydos/phonetic/_metaphone.py by pylint

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

Method could be a function
Open

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

        n_bits: int = 16,
Severity: Info
Found in abydos/fingerprint/_count.py by pylint

TODO n_bits: int = 16, ^ |

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

            numeral: str, fname: str, lname: str

TODO numeral: str, fname: str, lname: str ^ |

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

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

TODO ('ph', 'fh'), ^ |

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 ^ |

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

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

TODO lokal_ordet[0:1] == 'K' ^ |

Line too long (110/100)
Open

    ),  # maybe to add a rule for final m/n that disappears [preceeding vowel becomes nasalized]  # noqa: E501

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

Line too long (142/100)
Open

    # "ALL" DIPHTHONGS are interchangeable BETWEEN THEM and with monophthongs of which they are composed ("D" means "diphthong")  # noqa: E501

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

Severity
Category
Status
Source
Language