Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
and (tar_cur < tar_len)
- Read upRead up
- Exclude checks
TODO and (tarcur < tarlen) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Unnecessary parens after 'not' keyword Open
if not (col_covered[col]):
- Read upRead up
- Exclude checks
Used when a single item in parentheses follows an if, for, or other keyword.
Argument name x
doesn't conform to snake_case naming style Open
def _norm_exp(x: float, _squares: int, _pop: float) -> float:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Do not use len(SEQUENCE)
without comparison to determine if a sequence is empty Open
if not len(self._soft_intersection_precalc):
- Read upRead up
- Exclude checks
Used when Pylint detects that len(sequence) is being used without explicit comparison inside a condition to determine if a sequence is empty. Instead of coercing the length to a boolean, either rely on the fact that empty sequences are false or compare the length against a scalar.
Attribute '_tar_orig' defined outside __init__ Open
self._tar_orig = tar
- Read upRead up
- Exclude checks
Used when an instance attribute is defined outside the init method.
Wrong hanging indentation before block (add 4 spaces). Open
mat: Optional[Dict[Tuple[str, str], int]] = None,
- Read upRead up
- Exclude checks
TODO mat: Optional[Dict[Tuple[str, str], int]] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
Variable name b
doesn't conform to snake_case naming style Open
b = self._src_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 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...).
Variable name mx
doesn't conform to snake_case naming style Open
mx = np_full(
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Too many branches (15/12) Open
def dist_abs(self, src: str, tar: str) -> float:
- Read upRead up
- Exclude checks
Used when a function or method has too many branches, making it hard to follow.
Argument name x
doesn't conform to snake_case naming style Open
def _norm_laplace(x: float, squares: int, _pop: float) -> float:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Do not use len(SEQUENCE)
without comparison to determine if a sequence is empty Open
if not len(self._soft_intersection_precalc):
- Read upRead up
- Exclude checks
Used when Pylint detects that len(sequence) is being used without explicit comparison inside a condition to determine if a sequence is empty. Instead of coercing the length to a boolean, either rely on the fact that empty sequences are false or compare the length against a scalar.
Too many nested blocks (6/5) Open
while step < 4:
- 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
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
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...).
Wrong hanging indentation before block (add 4 spaces). Open
and (src[src_cur] == tar[tar_cur + i])
- Read upRead up
- Exclude checks
TODO and (src[srccur] == tar[tarcur + i]) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |