chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Consider using enumerate instead of iterating with range and len
Open

        for i in range(len(ying)):
Severity: Info
Found in abydos/distance/_strcmp95.py by pylint

Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.

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

        **kwargs: Any

TODO **kwargs: Any ^ |

Method could be a function
Open

    def _token_at(
Severity: Info
Found in abydos/distance/_guth.py by pylint

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

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

            t = self._token_at(tar, pos - 1)
Severity: Info
Found in abydos/distance/_guth.py by pylint

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

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

            s = self._token_at(src, pos + 1)
Severity: Info
Found in abydos/distance/_guth.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

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

TODO self, ^ |

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

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

TODO alphabet: Optional[ ^ |

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

        **kwargs: Any
Severity: Info
Found in abydos/distance/_dennis.py by pylint

TODO **kwargs: Any ^ |

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

        c = self._tar_only_card()
Severity: Info
Found in abydos/distance/_kuhns_vi.py by pylint

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

Parameters differ from overridden 'sim' method
Open

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

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

Parameters differ from overridden 'dist' method
Open

    def dist(self, *args: Any, **kwargs: Any) -> NoReturn:
Severity: Minor
Found in abydos/distance/_millar.py by pylint

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

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

        pe = 2 * q * (1 - q)
Severity: Info
Found in abydos/distance/_gwet_ac.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

        **kwargs: Any
Severity: Info
Found in abydos/distance/_mountford.py by pylint

TODO **kwargs: Any ^ |

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

        **kwargs: Any
Severity: Info
Found in abydos/distance/_forbes_ii.py by pylint

TODO **kwargs: Any ^ |

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

        intersection_type: str = 'crisp',
Severity: Info
Found in abydos/distance/_digby.py by pylint

TODO intersection_type: str = 'crisp', ^ |

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

                self._long_strings
Severity: Info
Found in abydos/distance/_strcmp95.py by pylint

TODO self.longstrings ^ |

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

                and (num_com > i + 1)
Severity: Info
Found in abydos/distance/_strcmp95.py by pylint

TODO and (num_com > i + 1) ^ |

Too many local variables (23/15)
Open

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

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

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

        a = self._intersection_card()
Severity: Info
Found in abydos/distance/_dennis.py by pylint

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

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

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

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

Severity
Category
Status
Source
Language