chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

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

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

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

        d = self._total_complement_card()
Severity: Info
Found in abydos/distance/_hurlbert.py by pylint

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

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

        d = self._total_complement_card()
Severity: Info
Found in abydos/distance/_pearson_phi.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/_baulieu_iii.py by pylint

TODO alphabet: Optional[ ^ |

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

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

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

Too many arguments (9/5)
Open

    def __init__(
Severity: Info
Found in abydos/distance/_aline.py by pylint

Used when a function or method takes too many arguments.

Unused argument 'args'
Open

        def _sig_skip(*args: Any) -> float:
Severity: Minor
Found in abydos/distance/_aline.py by pylint

Used when a function or method argument is not used.

Too many nested blocks (6/5)
Open

        for i in range(1, len(tar_feat)):
Severity: Info
Found in abydos/distance/_aline.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

        self, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any
Severity: Info
Found in abydos/distance/_hellinger.py by pylint

TODO self, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any ^ |

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

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

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

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

        self,

TODO self, ^ |

Consider using enumerate instead of iterating with range and len
Open

        for pos in range(len(src_list)):

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

Too many local variables (16/15)
Open

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

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

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

        normalizer: Callable[[List[float]], float] = max,
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO normalizer: Callable[[List[float]], float] = max, ^ |

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

                    + score
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO + score ^ |

Useless return at end of function or method
Open

            def _record(score: float, out: List[Tuple[str, str]]) -> None:
Severity: Info
Found in abydos/distance/_aline.py by pylint

Emitted when a single return or return None statement is found at the end of function or method definition. This statement can safely be removed because Python will implicitly return None

Too many statements (62/50)
Open

        def _retrieve(
Severity: Info
Found in abydos/distance/_aline.py by pylint

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

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

        self,

TODO self, ^ |

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

        encode_alpha: bool = False,

TODO encode_alpha: bool = False, ^ |

Too many branches (19/12)
Open

    def __init__(

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

Severity
Category
Status
Source
Language