chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Method could be a function
Open

    def _normalize_lang_attrs(self, text: str, strip: bool) -> str:
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

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

Too few public methods (1/2)
Open

class CLEFGermanPlus(_Stemmer):

Used when class has too few public methods, so be sure it's really worth it.

Method could be a function
Open

    def _language_index_from_code(self, code: int, name_mode: str) -> int:
Severity: Info
Found in abydos/phonetic/_beider_morse.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

                    'iunt',
Severity: Info
Found in abydos/stemmer/_schinke.py by pylint

TODO 'iunt', ^ |

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

        reverse: bool = False,
Severity: Info
Found in abydos/phonetic/_soundex.py by pylint

TODO reverse: bool = False, ^ |

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

        nv = self.stem_dict(word)
Severity: Info
Found in abydos/stemmer/_schinke.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

            'recurse' not in kwargs or kwargs['recurse'] is not False
Severity: Info
Found in abydos/phonetic/_soundex.py by pylint

TODO 'recurse' not in kwargs or kwargs['recurse'] is not False ^ |

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

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

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

Too many branches (46/12)
Open

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

    silent: bool = False,
Severity: Info
Found in abydos/util/_data.py by pylint

TODO silent: bool = False, ^ |

Redefining argument with the local name 'path'
Open

    for path in paths:
Severity: Info
Found in abydos/util/_data.py by pylint

Used when a local name is redefining an argument, which might suggest a potential error. This is taken in account only for a handful of name binding operations, such as for iteration, with statement assignment and exception handler assignment.

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

        rules: Tuple[Any, ...],
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

TODO rules: Tuple[Any, ...], ^ |

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

        final_rules: Tuple[Any, ...],
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

TODO final_rules: Tuple[Any, ...], ^ |

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

            _LANG_DICT[_] for _ in BMDATA[name_mode]['languages']
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

TODO LANGDICT[_] for _ in BMDATA[name_mode]['languages'] ^ |

Method could be a function
Open

    def _remove_dupes(self, phonetic: str) -> str:
Severity: Info
Found in abydos/phonetic/_beider_morse.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

            'ene',

TODO 'ene', ^ |

Too few public methods (1/2)
Open

class Caumanns(_Stemmer):
Severity: Info
Found in abydos/stemmer/_caumanns.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,
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

TODO self, ^ |

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

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

TODO self, ^ |

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

            'ert',

TODO 'ert', ^ |

Severity
Category
Status
Source
Language