chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Unnecessary elif after return
Open

        if not admbc:

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.

Useless super delegation in method '__init__'
Open

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

        cost: Tuple[int, int] = (1, 1),

TODO cost: Tuple[int, int] = (1, 1), ^ |

Unable to import 'numpy'
Open

from numpy import int_ as np_int
Severity: Critical
Found in abydos/distance/_shapira_storer_i.py by pylint

Used when pylint has been unable to import a module.

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

        phones: str = 'aline',
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO phones: str = 'aline', ^ |

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

                    i > 0
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO i > 0 ^ |

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

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

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

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

                    i < src_len and j < tar_len
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO i < srclen and j < tarlen ^ |

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

                for ss, ts in out:
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...).

Too many statements (136/50)
Open

    def alignments(
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

        **kwargs: Any

TODO **kwargs: Any ^ |

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

        d = self._total_complement_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...).

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

        self, src: str, tar: str, score_only: bool = False
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO self, src: str, tar: str, score_only: bool = False ^ |

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

            i: int, j: int, score: float, out: List[Tuple[str, str]]
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO i: int, j: int, score: float, out: List[Tuple[str, str]] ^ |

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

                    and j > 0
Severity: Info
Found in abydos/distance/_aline.py by pylint

TODO and j > 0 ^ |

Too many local variables (33/15)
Open

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

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

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

                for ss, ts in out:
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...).

Unnecessary else after return
Open

            if s_mat[i, j] == 0:
Severity: Info
Found in abydos/distance/_aline.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 n doesn't conform to snake_case naming style
Open

        n = self._population_unique_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

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

TODO self, ^ |

Severity
Category
Status
Source
Language