chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

            and word[-2] in {'a', 'e', 'o', 'u'}
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO and word[-2] in {'a', 'e', 'o', 'u'} ^ |

Unnecessary else after return
Open

        if self._acceptable(word):
Severity: Info
Found in abydos/stemmer/_paice_husk.py by pylint

Used in order to highlight an unnecessary block of code following an if containing a return statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a return statement.

Too few public methods (1/2)
Open

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

            word: str, del_len: int
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

TODO word: str, del_len: int ^ |

Too many branches (28/12)
Open

        def _stem(word: str) -> Tuple[str, float]:
Severity: Info
Found in abydos/stemmer/_uea_lite.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

                    r1_start >= 1
Severity: Info
Found in abydos/stemmer/_porter2.py by pylint

TODO r1_start >= 1 ^ |

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

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

TODO 'ance', ^ |

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

                and term[-2] in self._vowels
Severity: Info
Found in abydos/stemmer/_snowball.py by pylint

TODO and term[-2] in self._vowels ^ |

Too few public methods (1/2)
Open

class CLEFGerman(_Stemmer):
Severity: Info
Found in abydos/stemmer/_clef_german.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_o(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_u(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_z(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 _recode30(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

                len(word[r1_start:]) >= 2
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO len(word[r1_start:]) >= 2 ^ |

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

                        and word[-2] not in self._vowels
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO and word[-2] not in self._vowels ^ |

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

                    and len(word[r2_start:]) >= 2
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO and len(word[r2_start:]) >= 2 ^ |

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

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

TODO and word[-1] != 'I' ^ |

Variable name n doesn't conform to snake_case naming style
Open

            for n in range(7, 1, -1):
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

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

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

TODO 'ment', ^ |

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

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

TODO 'ant', ^ |

Severity
Category
Status
Source
Language