chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Useless super delegation in method '__init__'
Open

    def __init__(self, **kwargs: Any) -> None:
Severity: Minor
Found in abydos/distance/_higuera_mico.py by pylint

Used whenever we can detect that an overridden method is useless, relying on super() delegation to do the same thing as another method from the MRO.

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

            self._weights, str
Severity: Info
Found in abydos/distance/_eudex.py by pylint

TODO self._weights, str ^ |

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

                self.params['alphabet'], Counter
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

TODO self.params['alphabet'], Counter ^ |

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

            'normalizer' in self.params
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

TODO 'normalizer' in self.params ^ |

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

                        row_covered[row] | col_covered[col]
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

TODO rowcovered[row] | colcovered[col] ^ |

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_proportional(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...).

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

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

        symmetric: bool = True,

TODO symmetric: bool = True, ^ |

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

        self,

TODO self, ^ |

Useless super delegation in method 'sim'
Open

    def sim(self, src: str, tar: str) -> float:
Severity: Minor
Found in abydos/distance/_dice.py by pylint

Used whenever we can detect that an overridden method is useless, relying on super() delegation to do the same thing as another method from the MRO.

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

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

TODO self, ^ |

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

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

TODO self, ^ |

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

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

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

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

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

TODO (tarcur + i < tarlen) ^ |

Too many instance attributes (12/7)
Open

class _TokenDistance(_Distance):
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when class has too many instance attributes, try to reduce this to get a simpler (and so easier to use) class.

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

    def _norm_none(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...).

Too many local variables (23/15)
Open

    def _group_linkage_intersection(self) -> TCounter[str]:
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used when a function or method has too many local variables.

Too many branches (40/12)
Open

    def _group_linkage_intersection(self) -> TCounter[str]:
Severity: Info
Found in abydos/distance/_token_distance.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

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

TODO alphabet: Optional[ ^ |

Severity
Category
Status
Source
Language