chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

                        and (tar_cur < tar_len)
Severity: Info
Found in abydos/distance/_sift4_simplest.py by pylint

TODO and (tarcur < tarlen) ^ |

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

        self,
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

TODO self, ^ |

Unnecessary parens after 'not' keyword
Open

                    if not (col_covered[col]):
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when a single item in parentheses follows an if, for, or other keyword.

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

    def _norm_exp(x: float, _squares: int, _pop: float) -> float:
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

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

Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
Open

            if not len(self._soft_intersection_precalc):
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when Pylint detects that len(sequence) is being used without explicit comparison inside a condition to determine if a sequence is empty. Instead of coercing the length to a boolean, either rely on the fact that empty sequences are false or compare the length against a scalar.

Attribute '_tar_orig' defined outside __init__
Open

        self._tar_orig = tar
Severity: Minor
Found in abydos/distance/_token_distance.py by pylint

Used when an instance attribute is defined outside the init method.

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

        mat: Optional[Dict[Tuple[str, str], int]] = None,

TODO mat: Optional[Dict[Tuple[str, str], int]] = None, ^ |

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

        alphabet: Optional[
Severity: Info
Found in abydos/distance/_kuhns_xi.py by pylint

TODO alphabet: Optional[ ^ |

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

        b = self._src_only_card()
Severity: Info
Found in abydos/distance/_kuhns_xi.py by pylint

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

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

        n = self._population_unique_card()
Severity: Info
Found in abydos/distance/_kuhns_xi.py by pylint

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

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

        mx = np_full(
Severity: Info
Found in abydos/distance/_higuera_mico.py by pylint

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

Too many branches (15/12)
Open

    def dist_abs(self, src: str, tar: str) -> float:
Severity: Info
Found in abydos/distance/_higuera_mico.py by pylint

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

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

    def _norm_laplace(x: float, squares: int, _pop: float) -> float:
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

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

Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
Open

            if not len(self._soft_intersection_precalc):
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when Pylint detects that len(sequence) is being used without explicit comparison inside a condition to determine if a sequence is empty. Instead of coercing the length to a boolean, either rely on the fact that empty sequences are false or compare the length against a scalar.

Too many nested blocks (6/5)
Open

        while step < 4:
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when a function or a method has too many nested blocks. This makes the code less understandable and maintainable.

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

        alphabet: Optional[
Severity: Info
Found in abydos/distance/_scott_pi.py by pylint

TODO alphabet: Optional[ ^ |

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

        tokenizer: Optional[_Tokenizer] = None,
Severity: Info
Found in abydos/distance/_kuhns_xi.py by pylint

TODO tokenizer: Optional[_Tokenizer] = None, ^ |

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

        c = self._tar_only_card()
Severity: Info
Found in abydos/distance/_kuhns_xi.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

                        and (src[src_cur] == tar[tar_cur + i])
Severity: Info
Found in abydos/distance/_sift4_simplest.py by pylint

TODO and (src[srccur] == tar[tarcur + i]) ^ |

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

        tokenizer: Optional[_Tokenizer] = None,
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

TODO tokenizer: Optional[_Tokenizer] = None, ^ |

Severity
Category
Status
Source
Language