Showing 4,191 of 4,191 total issues
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
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
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...).
Consider using enumerate instead of iterating with range and len Open
for pos in range(len(tar_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.
Variable name j1
doesn't conform to snake_case naming style Open
for j1 in range(tar_len - 1, j - 1, -1):
- 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
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
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
abs(sp - tp) <= self._max_dist
- Read upRead up
- Exclude checks
TODO abs(sp - tp) <= self.maxdist ^ |
Wrong hanging indentation before block (add 4 spaces). Open
seg2a: Dict[str, float],
- Read upRead up
- Exclude checks
TODO seg2a: Dict[str, float], ^ |
Too many nested blocks (6/5) Open
for i in range(1, len(src_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
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
Wrong hanging indentation before block (add 4 spaces). Open
positive_irrational: float = e,
- Read upRead up
- Exclude checks
TODO positive_irrational: float = e, ^ |
Consider using enumerate instead of iterating with range and len Open
for pos in range(len(tar_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.
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...).
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
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
>= threshold
- Read upRead up
- Exclude checks
TODO
= threshold ^ |
Wrong hanging indentation before block (add 4 spaces). Open
metric: Optional[Union[Type[_Distance], _Distance]] = None,
- Read upRead up
- Exclude checks
TODO metric: Optional[Union[Type[_Distance], _Distance]] = None, ^ |