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
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
self, max_offset: int = 5, max_distance: int = 0, **kwargs: Any
- Read upRead up
- Exclude checks
TODO self, maxoffset: int = 5, maxdistance: int = 0, **kwargs: Any ^ |
Wrong hanging indentation before block (add 4 spaces). Open
cost: Tuple[float, float, float, float] = (1, 1, 1, 1),
- Read upRead up
- Exclude checks
TODO cost: Tuple[float, float, float, float] = (1, 1, 1, 1), ^ |
Too many local variables (16/15) Open
def _alignment_matrix(
- Read upRead up
- Exclude checks
Used when a function or method has too many local variables.
Unused variable 'trans_cost' Open
ins_cost, del_cost, sub_cost, trans_cost = self._cost
- Read upRead up
- Exclude checks
Used when a variable is defined but not used.
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 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 i in range(len(ying)):
- 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.
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
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
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
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 po
doesn't conform to snake_case naming style Open
po = (a + d) / n
- 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 (19/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.
Wrong hanging indentation before block (add 4 spaces). Open
self, src: str, tar: str, backtrace: bool = True
- Read upRead up
- Exclude checks
TODO self, src: str, tar: str, backtrace: bool = True ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and src[i - 1] == tar[j]
- Read upRead up
- Exclude checks
TODO and src[i - 1] == tar[j] ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |