chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

        a = self._intersection_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...).

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

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

TODO **kwargs: Any ^ |

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

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

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

Consider using enumerate instead of iterating with range and len
Open

        for pos in range(len(tar_list)):

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

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

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

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

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

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

TODO intersection_type: str = 'crisp', ^ |

Useless super delegation in method '__init__'
Open

    def __init__(self, **kwargs: Any) -> None:
Severity: Minor
Found in abydos/distance/_rouge_l.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

                            abs(sp - tp) <= self._max_dist

TODO abs(sp - tp) <= self.maxdist ^ |

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

            seg2a: Dict[str, float],
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO seg2a: Dict[str, float], ^ |

Too many nested blocks (6/5)
Open

        for i in range(1, len(src_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

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

TODO alphabet: Optional[ ^ |

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

        positive_irrational: float = e,
Severity: Info
Found in abydos/distance/_baulieu_iv.py by pylint

TODO positive_irrational: float = e, ^ |

Consider using enumerate instead of iterating with range and len
Open

        for pos in range(len(tar_list)):

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

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

        a = self._intersection_card()
Severity: Info
Found in abydos/distance/_baulieu_v.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/_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

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

TODO self, ^ |

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

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

TODO self, ^ |

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

                    >= threshold
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO

= threshold ^ |

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

        metric: Optional[Union[Type[_Distance], _Distance]] = None,

TODO metric: Optional[Union[Type[_Distance], _Distance]] = None, ^ |

Severity
Category
Status
Source
Language