Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
or word[-2:] == 'IE'
- Read upRead up
- Exclude checks
TODO or word[-2:] == 'IE' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _string_at(0, 5, {'CHORE'})
- Read upRead up
- Exclude checks
TODO and not stringat(0, 5, {'CHORE'}) ^ |
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
and not _slavo_germanic()
- Read upRead up
- Exclude checks
TODO and not slavogermanic() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _string_at((current - 4), 2, {'ME', 'MA'})
- Read upRead up
- Exclude checks
TODO and not stringat((current - 4), 2, {'ME', 'MA'}) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == 0)
- Read upRead up
- Exclude checks
TODO (current == 0) ^ |
Parameters differ from overridden 'encode' method Open
def encode(self, word: str, alphabetic: bool = False) -> str:
- Read upRead up
- Exclude checks
Used when a method has a different number of arguments than in the implemented interface or in an overridden method.
Too many branches (15/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.
Too many statements (91/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.
Too many statements (77/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
(current + 1), 1, {'E', 'I', 'Y'}
- Read upRead up
- Exclude checks
TODO (current + 1), 1, {'E', 'I', 'Y'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not _slavo_germanic()
- Read upRead up
- Exclude checks
TODO and not slavogermanic() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(current == 0)
- Read upRead up
- Exclude checks
TODO (current == 0) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
pre: Optional[Set[str]] = None,
- Read upRead up
- Exclude checks
TODO pre: Optional[Set[str]] = None, ^ |
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 i == len(word) - 2
- Read upRead up
- Exclude checks
TODO and i == len(word) - 2 ^ |
Unnecessary elif
after continue
Open
if i >= len(word):
- 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 (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(
- Read upRead up
- Exclude checks
TODO or stringat( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or _string_at(0, 3, {'SCH'})
- Read upRead up
- Exclude checks
TODO or stringat(0, 3, {'SCH'}) ^ |