chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

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

TODO 'ate', ^ |

Too many statements (177/50)
Open

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

        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

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

TODO 'ible', ^ |

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

            'ernas',

TODO 'ernas', ^ |

Method could be a function
Open

    def _cond_h(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 _recode9(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:]) >= 1
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

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

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

        intact: bool,
Severity: Info
Found in abydos/stemmer/_paice_husk.py by pylint

TODO intact: bool, ^ |

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

        self,
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

TODO self, ^ |

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

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

TODO maxwordlength: int = 20, ^ |

Too many return statements (16/6)
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 return statement, making it hard to follow.

Too few public methods (1/2)
Open

class UEALite(_Stemmer):
Severity: Info
Found in abydos/stemmer/_uea_lite.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[-3] in self._li
Severity: Info
Found in abydos/stemmer/_porter2.py by pylint

TODO and word[-3] in self._li ^ |

Too many return statements (7/6)
Open

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

Used when a function or method has too many return statement, making it hard to follow.

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

            'heten',

TODO 'heten', ^ |

Method could be a function
Open

    def _cond_b(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_m(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.

Consider using enumerate instead of iterating with range and len
Open

        for i in range(len(word)):
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

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

Severity
Category
Status
Source
Language