chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Unnecessary else after return
Open

        if self.metric:

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 sp doesn't conform to snake_case naming style
Open

                for sp in src_pos[tok]:

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/_hurlbert.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/_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

        **kwargs: Any

TODO **kwargs: Any ^ |

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

                for sp in src_pos[tok]:

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

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

                    for tp in tar_pos[tok]:

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

                    + _sig_sub(src_feat_wt[i - 1], tar_feat_wt[j - 1])
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO + sigsub(srcfeatwt[i - 1], tarfeatwt[j - 1]) ^ |

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

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

TODO + sigexp( ^ |

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

                    and s_mat[i - 1, j] + _sig_skip(src_tok[i - 1]) + score
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO and smat[i - 1, j] + _sigskip(src_tok[i - 1]) + score ^ |

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

                for i1 in range(i - 1, -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...).

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

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

        transforms: Optional[

TODO transforms: Optional[ ^ |

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

                            abs(sp - tp) <= self._max_dist

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

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

                    for tp in tar_pos[tok]:

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/_pearson_phi.py by pylint

TODO alphabet: Optional[ ^ |

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.

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

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

TODO **kwargs: Any ^ |

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

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

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

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

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

TODO + score ^ |

Severity
Category
Status
Source
Language