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...).
Wrong hanging indentation before block (add 4 spaces). Open
and (minv > 4)
- Read upRead up
- Exclude checks
TODO and (minv > 4) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (2 * num_com >= minv + i)
- Read upRead up
- Exclude checks
TODO and (2 * num_com >= minv + i) ^ |
Variable name t
doesn't conform to snake_case naming style Open
t = self._token_at(tar, pos)
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name t
doesn't conform to snake_case naming style Open
t = self._token_at(tar, pos + 2)
- 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
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Wrong hanging indentation before block (add 4 spaces). Open
mode: str = 'lev',
- Read upRead up
- Exclude checks
TODO mode: str = 'lev', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and j + 1 > 1
- Read upRead up
- Exclude checks
TODO and j + 1 > 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and src[i] == tar[j - 1]
- Read upRead up
- Exclude checks
TODO and src[i] == tar[j - 1] ^ |
Unnecessary else
after return
Open
if int(d_mat[src_len, tar_len]) == d_mat[src_len, tar_len]:
- Read upRead up
- Exclude checks
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 a
doesn't conform to snake_case naming style Open
a = self._intersection_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 branches (25/12) Open
def sim(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.
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 n
doesn't conform to snake_case naming style Open
n = a + b + c + d
- 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
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
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 a
doesn't conform to snake_case naming style Open
a = self._intersection_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
taper: bool = False,
- Read upRead up
- Exclude checks
TODO taper: bool = False, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Useless super delegation in method '__init__' Open
def __init__(self, **kwargs: Any) -> None:
- Read upRead up
- Exclude checks
Used whenever we can detect that an overridden method is useless, relying on super() delegation to do the same thing as another method from the MRO.