chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

                        word[:hyphen].isalpha()
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

TODO word[:hyphen].isalpha() ^ |

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

                        and word[hyphen + 1 :].isalpha()
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

TODO and word[hyphen + 1 :].isalpha() ^ |

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

                    r'^[a-z](|[rl])(ing|ed)$', word
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

TODO r'^[a-z](|[rl])(ing|ed)$', word ^ |

Too few public methods (1/2)
Open

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

        self, term: str, r1_prefixes: Optional[Iterable[str]] = None
Severity: Info
Found in abydos/stemmer/_snowball.py by pylint

TODO self, term: str, r1_prefixes: Optional[Iterable[str]] = None ^ |

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

                word[i] == 'i'
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO word[i] == 'i' ^ |

Method could be a function
Open

    def _has_vowel(self, word: str) -> bool:
Severity: Info
Found in abydos/stemmer/_paice_husk.py by pylint

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

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

            for n in range(6, 0, -1):
Severity: Info
Found in abydos/stemmer/_paice_husk.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

                word == 'menses' and self._var == 'Adams'
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

TODO word == 'menses' and self._var == 'Adams' ^ |

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

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

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

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

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

TODO 'ive', ^ |

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

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

TODO and term[-1] in self._codanonvowels ^ |

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

            'arnas',

TODO 'arnas', ^ |

Method could be a function
Open

    def _cond_l(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_q(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 _recode28(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

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

TODO and word[i - 1] in self._vowels ^ |

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

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

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

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

        word: str,
Severity: Info
Found in abydos/stemmer/_paice_husk.py by pylint

TODO word: str, ^ |

Too many statements (54/50)
Open

    def _stem_and_rule(self, 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 statements. You should then split it in smaller functions / methods.

Severity
Category
Status
Source
Language