Showing 4,191 of 4,191 total issues
Variable name c
doesn't conform to snake_case naming style Open
c = self._tar_only_card()
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name d
doesn't conform to snake_case naming style Open
d = self._total_complement_card()
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name d
doesn't conform to snake_case naming style Open
d = self._total_complement_card()
- Read upRead up
- Exclude checks
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[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
Variable name n
doesn't conform to snake_case naming style Open
n = self._population_unique_card()
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Too many arguments (9/5) Open
def __init__(
- Read upRead up
- Exclude checks
Used when a function or method takes too many arguments.
Unused argument 'args' Open
def _sig_skip(*args: Any) -> float:
- Read upRead up
- Exclude checks
Used when a function or method argument is not used.
Too many nested blocks (6/5) Open
for i in range(1, len(tar_feat)):
- Read upRead up
- Exclude checks
Used when a function or a method has too many nested blocks. This makes the code less understandable and maintainable.
Wrong hanging indentation before block (add 4 spaces). Open
self, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any
- Read upRead up
- Exclude checks
TODO self, tokenizer: Optional[_Tokenizer] = None, **kwargs: Any ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Consider using enumerate instead of iterating with range and len Open
for pos in range(len(src_list)):
- Read upRead up
- Exclude checks
Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.
Too many local variables (16/15) Open
def corr(self, src: str, tar: str) -> float:
- Read upRead up
- Exclude checks
Used when a function or method has too many local variables.
Wrong hanging indentation before block (add 4 spaces). Open
normalizer: Callable[[List[float]], float] = max,
- Read upRead up
- Exclude checks
TODO normalizer: Callable[[List[float]], float] = max, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
+ score
- Read upRead up
- Exclude checks
TODO + score ^ |
Useless return at end of function or method Open
def _record(score: float, out: List[Tuple[str, str]]) -> None:
- Read upRead up
- Exclude checks
Emitted when a single return
or return None
statement is found at the end of function or method definition. This statement can safely be removed because Python will implicitly return None
Too many statements (62/50) Open
def _retrieve(
- Read upRead up
- Exclude checks
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
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
encode_alpha: bool = False,
- Read upRead up
- Exclude checks
TODO encode_alpha: bool = False, ^ |
Too many branches (19/12) Open
def __init__(
- Read upRead up
- Exclude checks
Used when a function or method has too many branches, making it hard to follow.