chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Too many lines in module (1747/1000)
Open

# Copyright 2019-2020 by Christopher C. Little.
Severity: Info
Found in abydos/distance/_aline.py by pylint

Used when a module has too many lines, reducing its readability.

Unable to import 'numpy'
Open

from numpy import float_, inf, zeros
Severity: Critical
Found in abydos/distance/_aline.py by pylint

Used when pylint has been unable to import a module.

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

        for ch in src:
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 b doesn't conform to snake_case naming style
Open

        b = self._src_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...).

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

        n3 = self._population_unique_card() ** 3
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...).

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.

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

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

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

Parameters differ from overridden 'sim' method
Open

    def sim(self, src: str, tar: str, beta: float = 8) -> float:
Severity: Minor
Found in abydos/distance/_rouge_l.py by pylint

Used when a method has a different number of arguments than in the implemented interface or in an overridden method.

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

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

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

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

        ac = self._tar_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

                            and tp not in tar_matched

TODO and tp not in tar_matched ^ |

Parameters differ from overridden 'dist_abs' method
Open

    def dist_abs(self, src: str, tar: str, *args: Any, **kwargs: Any) -> float:
Severity: Minor
Found in abydos/distance/_chebyshev.py by pylint

Used when a method has a different number of arguments than in the implemented interface or in an overridden method.

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

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

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

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

        c = self._tar_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...).

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

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

        gap_cost: float = 1,

TODO gap_cost: float = 1, ^ |

Unable to import 'numpy'
Open

from numpy import float_ as np_float
Severity: Critical
Found in abydos/distance/_needleman_wunsch.py by pylint

Used when pylint has been unable to import a module.

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

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

TODO self, ^ |

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

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

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

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

Severity
Category
Status
Source
Language