Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
and word[i : i + 3] == 'SCH'
- Read upRead up
- Exclude checks
TODO and word[i : i + 3] == 'SCH' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or word[i + 1 : i + 2] not in self._uc_v_set
- Read upRead up
- Exclude checks
TODO or word[i + 1 : i + 2] not in self.ucv_set ^ |
Wrong hanging indentation before block (add 4 spaces). Open
i,
- Read upRead up
- Exclude checks
TODO i, ^ |
Too many branches (29/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
(current == 1)
- Read upRead up
- Exclude checks
TODO (current == 1) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
current, 3, {'TTH'}
- Read upRead up
- Exclude checks
TODO current, 3, {'TTH'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tar: str,
- Read upRead up
- Exclude checks
TODO tar: str, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'O',
- Read upRead up
- Exclude checks
TODO 'O', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'O',
- Read upRead up
- Exclude checks
TODO 'O', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'NT',
- Read upRead up
- Exclude checks
TODO 'NT', ^ |
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
_string_at(0, 4, {'VAN ', 'VON '})
- Read upRead up
- Exclude checks
TODO stringat(0, 4, {'VAN ', 'VON '}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
current + 1
- Read upRead up
- Exclude checks
TODO current + 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and ((current > 0) and _get_at(current - 1) != 'T')
- Read upRead up
- Exclude checks
TODO and ((current > 0) and getat(current - 1) != 'T') ^ |
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.
Unnecessary else
after continue
Open
if _string_at((current + 2), 1, {'I', 'E', 'Y'}):
- 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.
Too many statements (99/50) Open
def encode(self, word: str) -> str:
- Read upRead up
- Exclude checks
Used when a function or method has too many statements. You should then split it in smaller functions / methods.
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 'Ù', ^ |