Showing 4,191 of 4,191 total issues
Variable name kb
doesn't conform to snake_case naming style Open
for kb in ['QWERTY', 'QWERTZ', 'AZERTY']:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Using possibly undefined loop variable 'row' Open
return kb_array.index(row), row.index(char)
- Read upRead up
- Exclude checks
Used when a loop variable (i.e. defined by a for loop or a list comprehension or a generator expression) is used outside the loop.
Argument name n
doesn't conform to snake_case naming style Open
def _henderson_heron(
- 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
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
block_limit: int = 2,
- Read upRead up
- Exclude checks
TODO block_limit: int = 2, ^ |
Line too long (103/100) Open
] # type: List[Tuple[Union[Sequence[str], Set[str], FrozenSet[str]], float]] # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Too many return statements (8/6) Open
def _cost(self, src: str, s_pos: int, tar: str, t_pos: int) -> float:
- Read upRead up
- Exclude checks
Used when a function or method has too many return statement, making it hard to follow.
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...).
Variable name b
doesn't conform to snake_case naming style Open
b /= n
- 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
top_n < len(terminals) and terminals[top_n].score == top_score
- Read upRead up
- Exclude checks
TODO topn < len(terminals) and terminals[topn].score == top_score ^ |
Wrong hanging indentation before block (add 4 spaces). Open
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Consider using enumerate instead of iterating with range and len Open
for i in range(len(src_voc)):
- 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
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
Wrong hanging indentation before block (add 4 spaces). Open
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
Unable to import 'numpy' Open
from numpy import float_ as np_float
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
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, ^ |