chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

                len(word) > 5 and word[-2:] == 'nd'
Severity: Info
Found in abydos/stemmer/_caumanns.py by pylint

TODO len(word) > 5 and word[-2:] == 'nd' ^ |

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

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

TODO and len(word) >= 2 ^ |

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

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

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

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

                    and word[-3] != 'e'
Severity: Info
Found in abydos/stemmer/_snowball_german.py by pylint

TODO and word[-3] != 'e' ^ |

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

    resource_name: str,
Severity: Info
Found in abydos/util/_data.py by pylint

TODO resource_name: str, ^ |

Constant name data_path doesn't conform to UPPER_CASE naming style
Open

data_path = []  # type: List[str]
Severity: Info
Found in abydos/util/_data.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Argument name m doesn't conform to snake_case naming style
Open

def _get_parts(m: Match[str]) -> str:
Severity: Info
Found in abydos/phonetic/_fonem.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

                    term[i : i + pattern_length] != pattern
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

TODO term[i : i + pattern_length] != pattern ^ |

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

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

TODO strip: bool, ^ |

Too many statements (57/50)
Open

    def _phonetic(
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

Used when a function or method has too many statements. You should then split it in smaller functions / methods.

Method could be a function
Open

    def _phonetic_number(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

                and word[-3] not in self._vowels

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

Constant name _paths_from_env doesn't conform to UPPER_CASE naming style
Open

_paths_from_env = os.environ.get('ABYDOS_DATA', str('')).split(
Severity: Info
Found in abydos/util/_data.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Unnecessary elif after return
Open

        if code == 'J7':

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.

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

                not found
Severity: Info
Found in abydos/phonetic/_beider_morse.py by pylint

TODO not found ^ |

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

            src: str,
Severity: Info
Found in abydos/phonetic/_phonix.py by pylint

TODO src: str, ^ |

Too few public methods (1/2)
Open

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

                not upper_initial and word[-1] in {'t', '!'}
Severity: Info
Found in abydos/stemmer/_caumanns.py by pylint

TODO not upper_initial and word[-1] in {'t', '!'} ^ |

Parameters differ from overridden 'encode' method
Open

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

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

Severity
Category
Status
Source
Language