Showing 4,191 of 4,191 total issues
Too many nested blocks (6/5) Open
for i in range(len(_phonet_rules)):
- 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.
Unnecessary elif
after continue
Open
if current > 0 and _string_at(current, 4, {'CHAE'}):
- Read upRead up
- Exclude checks
Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.
Wrong hanging indentation before block (add 4 spaces). Open
and prev in self._uc_vy_set
- Read upRead up
- Exclude checks
TODO and prev in self.ucvy_set ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'N',
- Read upRead up
- Exclude checks
TODO 'N', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'Â',
- Read upRead up
- Exclude checks
TODO 'Â', ^ |
Too many lines in module (1745/1000) Open
# Copyright 2014-2020 by Christopher C. Little.
- Read upRead up
- Exclude checks
Used when a module has too many lines, reducing its readability.
Too many nested blocks (6/5) Open
while i < len(src):
- 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.
Unnecessary elif
after continue
Open
if _string_at(current, 2, {'WR'}):
- Read upRead up
- Exclude checks
Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.
Wrong hanging indentation before block (add 4 spaces). Open
'N',
- Read upRead up
- Exclude checks
TODO 'N', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
word[1:2] in self._uc_c_set - {'M', 'N'}
- Read upRead up
- Exclude checks
TODO word[1:2] in self.ucc_set - {'M', 'N'} ^ |
Too many branches (49/12) Open
def encode(self, word: str) -> 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
'Á',
- 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
or (
- Read upRead up
- Exclude checks
TODO or ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
rule
- Read upRead up
- Exclude checks
TODO rule ^ |
Consider using tuple unpacking for swapping variables Open
pos0 = start3
- 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.
Too many nested blocks (6/5) Open
while i < len(src):
- 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.
Unused Counter imported from typing as TCounter Open
from typing import Counter as TCounter, Optional, Tuple, Union, cast
- Read upRead up
- Exclude checks
Used when an imported module or variable is not used.
Wrong hanging indentation before block (add 4 spaces). Open
'V',
- Read upRead up
- Exclude checks
TODO 'V', ^ |
Unnecessary elif
after continue
Open
if _string_at(current, 4, {'JOSE'}) or _string_at(
- Read upRead up
- Exclude checks
Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.