Showing 4,191 of 4,191 total issues
Too many nested blocks (8/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.
Too many nested blocks (8/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.
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
'ß',
- Read upRead up
- Exclude checks
TODO 'ß', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (rule not in '(-<^$')
- Read upRead up
- Exclude checks
TODO and (rule not in '(-<^$') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and (
- Read upRead up
- Exclude checks
TODO and ( ^ |
Too many branches (20/12) Open
def _initialize_phonet(lang: str) -> None:
- Read upRead up
- Exclude checks
Used when a function or method has too many branches, making it hard to follow.
Too many branches (65/12) Open
def _phonet(term: str, mode: int, lang: 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 (210/50) Open
def _phonet(term: str, mode: int, lang: 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 (256/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
'D',
- Read upRead up
- Exclude checks
TODO 'D', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
_slavo_germanic()
- Read upRead up
- Exclude checks
TODO slavogermanic() ^ |
Unnecessary elif
after continue
Open
if (current > 0) and not _is_vowel(current - 1):
- 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
'Ï',
- 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
_phonet_rules[pos + mode] is None
- Read upRead up
- Exclude checks
TODO phonetrules[pos + mode] is None ^ |
Wrong hanging indentation before block (add 4 spaces). Open
i + matches0 : i + matches0 + 1
- Read upRead up
- Exclude checks
TODO i + matches0 : i + matches0 + 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and rule
- Read upRead up
- Exclude checks
TODO and rule ^ |
Variable name ch
doesn't conform to snake_case naming style Open
ch = cast(str, _phonet_rules[i])[0]
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).