chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Method could be a function
Open

    def _cond_s(self, word: str, suffix_len: int) -> bool:
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

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

Method could be a function
Open

    def _cond_w(self, word: str, suffix_len: int) -> bool:
Severity: Info
Found in abydos/stemmer/_lovins.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

            len(word) > 1
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO len(word) > 1 ^ |

Too many boolean expressions in if statement (6/5)
Open

            len(word) >= 4
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

Used when an if statement contains too many boolean expressions.

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

            'ic',
Severity: Info
Found in abydos/stemmer/_porter2.py by pylint

TODO 'ic', ^ |

Method could be a function
Open

    def _cond_aa(self, word: str, suffix_len: int) -> bool:
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

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

Method could be a function
Open

    def _recode32(self, stem: str) -> str:
Severity: Info
Found in abydos/stemmer/_lovins.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

        max_acro_length: int = 8,
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

TODO maxacrolength: int = 8, ^ |

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

                    and word[-4] in tuple('st')
Severity: Info
Found in abydos/stemmer/_porter2.py by pylint

TODO and word[-4] in tuple('st') ^ |

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

                and not self._sb_ends_in_short_syllable(word[:-1])
Severity: Info
Found in abydos/stemmer/_porter2.py by pylint

TODO and not self.sbendsinshort_syllable(word[:-1]) ^ |

Too few public methods (1/2)
Open

class Porter2(_Snowball):
Severity: Info
Found in abydos/stemmer/_porter2.py by pylint

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

Method could be a function
Open

    def _cond_d(self, word: str, suffix_len: int) -> bool:
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

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

Method could be a function
Open

    def _cond_i(self, word: str, suffix_len: int) -> bool:
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

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

Method could be a function
Open

    def _cond_j(self, word: str, suffix_len: int) -> bool:
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

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

Method could be a function
Open

    def _cond_y(self, word: str, suffix_len: int) -> bool:
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

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

Method could be a function
Open

    def _cond_cc(self, word: str, suffix_len: int) -> bool:
Severity: Info
Found in abydos/stemmer/_lovins.py by pylint

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

Too few public methods (1/2)
Open

class Lovins(_Stemmer):
Severity: Info
Found in abydos/stemmer/_lovins.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

            and word[-1] == word[-2]
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO and word[-1] == word[-2] ^ |

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

                word[-4] not in self._vowels and word[-6:-3] != 'gem'
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO word[-4] not in self._vowels and word[-6:-3] != 'gem' ^ |

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

                    and word[-3] != 'e'
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO and word[-3] != 'e' ^ |

Severity
Category
Status
Source
Language