Showing 4,191 of 4,191 total issues
Unnecessary elif
after return
Open
if not admbc:
- 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.
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.
Wrong hanging indentation before block (add 4 spaces). Open
cost: Tuple[int, int] = (1, 1),
- Read upRead up
- Exclude checks
TODO cost: Tuple[int, int] = (1, 1), ^ |
Unable to import 'numpy' Open
from numpy import int_ as np_int
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Wrong hanging indentation before block (add 4 spaces). Open
phones: str = 'aline',
- Read upRead up
- Exclude checks
TODO phones: str = 'aline', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
i > 0
- Read upRead up
- Exclude checks
TODO i > 0 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and s_mat[i, j - 1] + _sig_skip(tar_tok[j - 1]) + score
- Read upRead up
- Exclude checks
TODO and smat[i, j - 1] + _sigskip(tar_tok[j - 1]) + score ^ |
Wrong hanging indentation before block (add 4 spaces). Open
i < src_len and j < tar_len
- Read upRead up
- Exclude checks
TODO i < srclen and j < tarlen ^ |
Variable name ss
doesn't conform to snake_case naming style Open
for ss, ts in out:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Too many statements (136/50) Open
def alignments(
- 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
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
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
self, src: str, tar: str, score_only: bool = False
- Read upRead up
- Exclude checks
TODO self, src: str, tar: str, score_only: bool = False ^ |
Wrong hanging indentation before block (add 4 spaces). Open
i: int, j: int, score: float, out: List[Tuple[str, str]]
- Read upRead up
- Exclude checks
TODO i: int, j: int, score: float, out: List[Tuple[str, str]] ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and j > 0
- Read upRead up
- Exclude checks
TODO and j > 0 ^ |
Too many local variables (33/15) Open
def alignments(
- Read upRead up
- Exclude checks
Used when a function or method has too many local variables.
Variable name ts
doesn't conform to snake_case naming style Open
for ss, ts in out:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Unnecessary else
after return
Open
if s_mat[i, j] == 0:
- 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 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...).
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |