chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

Consider using enumerate instead of iterating with range and len
Open

        for i in range(len(p)):
Severity: Info
Found in abydos/distance/_steffensen.py by pylint

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

                in full_src2
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO in full_src2 ^ |

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

            tar2_num_words == 1
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO tar2numwords == 1 ^ |

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

            and tar2_words[0] == src2_words[0]
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO and tar2words[0] == src2words[0] ^ |

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

        word_approx_min: float = 0.3,
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO wordapproxmin: float = 0.3, ^ |

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

        force_numeric: bool = False,
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO force_numeric: bool = False, ^ |

Access to a protected member _synoname_special_table of a client class
Open

                        self._stc._synoname_special_table[s_pos][  # noqa: SF01
Severity: Minor
Found in abydos/distance/_synoname.py by pylint

Used when a protected member (i.e. class member with a name beginning with an underscore) is access outside the class or a descendant of the class where it's defined.

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

        a = self._intersection_card()
Severity: Info
Found in abydos/distance/_kuhns_ix.py by pylint

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

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

        p = np_array([[a, b], [c, d]]) / n
Severity: Info
Found in abydos/distance/_steffensen.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/_upholt.py by pylint

TODO alphabet: Optional[ ^ |

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

        n = a + b + c + d
Severity: Info
Found in abydos/distance/_scott_pi.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

            tar1_num_words == 1
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO tar1numwords == 1 ^ |

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

            and src1_num_words == 1
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO and src1numwords == 1 ^ |

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

            and src2_num_words == 1
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO and src2numwords == 1 ^ |

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

        ret_name: bool = False,
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO ret_name: bool = False, ^ |

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

                src_ln.startswith(tar_ln) or tar_ln.startswith(src_ln)
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO srcln.startswith(tarln) or tarln.startswith(srcln) ^ |

Access to a protected member _synoname_special_table of a client class
Open

                and self._stc._synoname_special_table[s_pos][1]  # noqa: SF01
Severity: Minor
Found in abydos/distance/_synoname.py by pylint

Used when a protected member (i.e. class member with a name beginning with an underscore) is access outside the class or a descendant of the class where it's defined.

Too many boolean expressions in if statement (6/5)
Open

        if matches > 1 or (
Severity: Info
Found in abydos/distance/_synoname.py by pylint

Used when an if statement contains too many boolean expressions.

Too many return statements (18/6)
Open

    def sim_type(
Severity: Info
Found in abydos/distance/_synoname.py by pylint

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

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

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

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

Severity
Category
Status
Source
Language