chrislit/abydos

View on GitHub
abydos/distance/_bhattacharyya.py

Summary

Maintainability
A
0 mins
Test Coverage

Unnecessary elif after return
Open

        if bc == 0:
Severity: Info
Found in abydos/distance/_bhattacharyya.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 bc doesn't conform to snake_case naming style
Open

        bc = self.dist(src, tar)
Severity: Info
Found in abydos/distance/_bhattacharyya.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, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any
Severity: Info
Found in abydos/distance/_bhattacharyya.py by pylint

TODO self, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any ^ |

There are no issues that match your filters.

Category
Status