chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

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

TODO alphabet: Optional[ ^ |

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

        self,

TODO self, ^ |

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

        n = self._population_unique_card()
Severity: Info
Found in abydos/distance/_baulieu_viii.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

TODO **kwargs: Any ^ |

Too many branches (13/12)
Open

    def dist_abs(self, src: str, tar: str) -> float:

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

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

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

TODO **kwargs: Any ^ |

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

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

TODO self, ^ |

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

        self, level: int = zlib.Z_DEFAULT_COMPRESSION, **kwargs: Any
Severity: Info
Found in abydos/distance/_ncd_zlib.py by pylint

TODO self, level: int = zlib.ZDEFAULTCOMPRESSION, **kwargs: Any ^ |

Consider using enumerate instead of iterating with range and len
Open

                    for j in range(len(yang)):
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

        self,

TODO self, ^ |

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

            t = self._token_at(tar, pos)
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...).

Unnecessary else after return
Open

        if not delta_ab:
Severity: Info
Found in abydos/distance/_kuhns_vi.py by pylint

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.

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

            s = self._token_at(src, pos)
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

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

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

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

            s = self._token_at(src, pos + 2)
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

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

TODO **kwargs: Any ^ |

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

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

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

TODO alphabet: Optional[ ^ |

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

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

TODO self, ^ |

Severity
Category
Status
Source
Language