Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
'Ç',
- Read upRead up
- Exclude checks
TODO 'Ç', ^ |
Too many nested blocks (6/5) Open
while True:
- 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
'Ø',
- Read upRead up
- Exclude checks
TODO 'Ø', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'Š',
- Read upRead up
- Exclude checks
TODO 'Š', ^ |
Variable name n
doesn't conform to snake_case naming style Open
for n in range(1, len(shifted_values)):
- 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
'Ÿ',
- Read upRead up
- Exclude checks
TODO 'Ÿ', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'Ã',
- Read upRead up
- Exclude checks
TODO 'Ã', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(len(src) > (i + matches))
- Read upRead up
- Exclude checks
TODO (len(src) > (i + matches)) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'Å',
- Read upRead up
- Exclude checks
TODO 'Å', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'Ð',
- Read upRead up
- Exclude checks
TODO 'Ð', ^ |
Consider using enumerate instead of iterating with range and len Open
for i in range(len(_phonet_rules)):
- 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
'Û',
- Read upRead up
- Exclude checks
TODO 'Û', ^ |
Too many local variables (29/15) Open
def _phonet(term: str, mode: int, lang: str) -> str:
- Read upRead up
- Exclude checks
Used when a function or method has too many local variables.
Wrong hanging indentation before block (add 4 spaces). Open
cast(str, _phonet_rules[i + 1])
- Read upRead up
- Exclude checks
TODO cast(str, phonetrules[i + 1]) ^ |
Consider using tuple unpacking for swapping variables Open
pos = end1
- Read upRead up
- Exclude checks
You do not have to use a temporary variable in order to swap variables. Using tuple unpacking
to directly swap variables makes the intention more clear.
Wrong hanging indentation before block (add 4 spaces). Open
(start3 < 0) or (start4 < start3)
- Read upRead up
- Exclude checks
TODO (start3 < 0) or (start4 < start3) ^ |
Consider using tuple unpacking for swapping variables Open
pos0 = end3
- Read upRead up
- Exclude checks
You do not have to use a temporary variable in order to swap variables. Using tuple unpacking
to directly swap variables makes the intention more clear.
Wrong hanging indentation before block (add 4 spaces). Open
'K',
- Read upRead up
- Exclude checks
TODO 'K', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'M',
- Read upRead up
- Exclude checks
TODO 'M', ^ |