chrislit/abydos

View on GitHub

Showing 4,191 of 4,191 total issues

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

        n = max(len(src_only_tok), len(tar_only_tok))
Severity: Info
Found in abydos/distance/_token_distance.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 col in range(len(src_only_tok)):
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

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

Unnecessary else after break
Open

                            if not z_cols.size:
Severity: Info
Found in abydos/distance/_token_distance.py by pylint

Used in order to highlight an unnecessary block of code following an if containing a break statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a break statement.

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

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

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

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

        tar_ln: str,
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO tar_ln: str, ^ |

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

        tar_fn: str = '',
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO tar_fn: str = '', ^ |

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

                    'with the ',
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO 'with the ', ^ |

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

                    or (tar_fn and src_fn.startswith(tar_fn))
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO or (tarfn and srcfn.startswith(tar_fn)) ^ |

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

            'roman_conflict' in features and features['roman_conflict']
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO 'romanconflict' in features and features['romanconflict'] ^ |

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

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

TODO and self.stc.synonamespecialtable[s_pos][1] # noqa: SF01 ^ |

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

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

TODO and tar1numwords == 1 ^ |

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

        src: Union[str, Tuple[str, str, str]],
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO src: Union[str, Tuple[str, str, str]], ^ |

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

                    'with the ',
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO 'with the ', ^ |

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

                    (not src_len_fn and not tar_len_fn)
Severity: Info
Found in abydos/distance/_synoname.py by pylint

TODO (not srclenfn and not tarlenfn) ^ |

Too many return statements (10/6)
Open

    def _synoname_word_approximation(
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.

Access to a protected member _mode of a client class
Open

            self._lev._mode = 'lev'  # 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.

Unused variable 'approx_c_result'
Open

        approx_c_result, ca_ratio = _approx_c()
Severity: Minor
Found in abydos/distance/_synoname.py by pylint

Used when a variable is defined but not used.

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

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

TODO self, ^ |

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

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

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

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

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

TODO intersection_type: str = 'crisp', ^ |

Severity
Category
Status
Source
Language