chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

            and word[-1] in {'Y', 'y'}
Severity: Info
Found in abydos/stemmer/_porter2.py by pylint

TODO and word[-1] in {'Y', 'y'} ^ |

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

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

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

Method could be a function
Open

    def _cond_f(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_p(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

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

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

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

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

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

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

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

TODO 'ement', ^ |

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

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

TODO 'able', ^ |

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

            'ornas',

TODO 'ornas', ^ |

Method could be a function
Open

    def _cond_r(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_v(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

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

TODO word[-2:] == 'ig' ^ |

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

                        and len(word) - 1 > self._max_acro_length
Severity: Info
Found in abydos/stemmer/_uea_lite.py by pylint

TODO and len(word) - 1 > self.maxacro_length ^ |

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

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

TODO 'ent', ^ |

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

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

TODO 'ous', ^ |

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

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

TODO and len(word) >= 4 ^ |

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

            term
Severity: Info
Found in abydos/stemmer/_snowball.py by pylint

TODO term ^ |

Consider using enumerate instead of iterating with range and len
Open

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

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

Too few public methods (1/2)
Open

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

            'anden',

TODO 'anden', ^ |

Severity
Category
Status
Source
Language