chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

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

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

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

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

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

Unnecessary elif after return
Open

        if word in self._exception1dict:
Severity: Info
Found in abydos/stemmer/_porter2.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.

Method could be a function
Open

    def _cond_c(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 _recode24(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 i + 1 < len(word)
Severity: Info
Found in abydos/stemmer/_snowball_dutch.py by pylint

TODO and i + 1 < len(word) ^ |

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

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

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

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

        rule: Tuple[bool, int, Optional[str], bool],
Severity: Info
Found in abydos/stemmer/_paice_husk.py by pylint

TODO rule: Tuple[bool, int, Optional[str], bool], ^ |

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

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

TODO self._var == 'Adams' ^ |

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

                    and word[-4] == 'l'
Severity: Info
Found in abydos/stemmer/_porter2.py by pylint

TODO and word[-4] == 'l' ^ |

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

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

TODO 'ence', ^ |

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

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

TODO 'er', ^ |

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

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

TODO term[-3] not in self._vowels ^ |

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

            'andet',

TODO 'andet', ^ |

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

            or (word[-1] == 's' and word[-2] in self._st_ending)

TODO or (word[-1] == 's' and word[-2] in self.stending) ^ |

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

            word[-2:] in {'er', 'en'}

TODO word[-2:] in {'er', 'en'} ^ |

Redefining name 'data_path' from outer scope (line 52)
Open

    data_path: Optional[str] = None,
Severity: Minor
Found in abydos/util/_data.py by pylint

Used when a variable's name hides a name defined in the outer scope.

Parameters differ from overridden 'encode' method
Open

    def encode(self, lname: str) -> str:

Used when a method has a different number of arguments than in the implemented interface or in an overridden method.

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

        self,
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

TODO self, ^ |

Severity
Category
Status
Source
Language