Showing 4,191 of 4,191 total issues
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
self._weights, str
- Read upRead up
- Exclude checks
TODO self._weights, str ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self.params['alphabet'], Counter
- Read upRead up
- Exclude checks
TODO self.params['alphabet'], Counter ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'normalizer' in self.params
- Read upRead up
- Exclude checks
TODO 'normalizer' in self.params ^ |
Wrong hanging indentation before block (add 4 spaces). Open
row_covered[row] | col_covered[col]
- Read upRead up
- Exclude checks
TODO rowcovered[row] | colcovered[col] ^ |
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_proportional(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...).
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
symmetric: bool = True,
- Read upRead up
- Exclude checks
TODO symmetric: bool = True, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Useless super delegation in method 'sim' Open
def sim(self, src: str, tar: str) -> float:
- 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
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
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
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(tar_cur + i < tar_len)
- Read upRead up
- Exclude checks
TODO (tarcur + i < tarlen) ^ |
Too many instance attributes (12/7) Open
class _TokenDistance(_Distance):
- Read upRead up
- Exclude checks
Used when class has too many instance attributes, try to reduce this to get a simpler (and so easier to use) class.
Argument name x
doesn't conform to snake_case naming style Open
def _norm_none(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...).
Too many local variables (23/15) Open
def _group_linkage_intersection(self) -> TCounter[str]:
- Read upRead up
- Exclude checks
Used when a function or method has too many local variables.
Too many branches (40/12) Open
def _group_linkage_intersection(self) -> TCounter[str]:
- 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
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |