Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
and (src[i + matches] in rule[1:])
- Read upRead up
- Exclude checks
TODO and (src[i + matches] in rule[1:]) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(j > 0)
- Read upRead up
- Exclude checks
TODO (j > 0) ^ |
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.
Too many nested blocks (9/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
and not _is_vowel(pos + 1)
- Read upRead up
- Exclude checks
TODO and not isvowel(pos + 1) ^ |
Too many branches (16/12) Open
def encode(self, word: Union[str, Sequence[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
lokal_ordet[0:1] == 'C' and lokal_ordet[1:2] in self._uc_c_set
- Read upRead up
- Exclude checks
TODO lokalordet[0:1] == 'C' and lokalordet[1:2] in self.ucc_set ^ |
Line too long (103/100) Open
# e.g., ^ means start of word, $ Means End Of Word, [^ei] means anything but e or i, etc. # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Line too long (142/100) Open
# {a,o} are totally interchangeable if non-stressed; in German "a/o" can actually be from "ä/ö" (that are equivalent to "e") # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Wrong hanging indentation before block (add 4 spaces). Open
zero_pad: bool = True,
- Read upRead up
- Exclude checks
TODO zero_pad: bool = True, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
i + 1 == elen or ename[i + 2 : i + 3] not in self._uc_v_set
- Read upRead up
- Exclude checks
TODO i + 1 == elen or ename[i + 2 : i + 3] not in self.ucv_set ^ |
Unnecessary elif
after continue
Open
if (
- 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 (101/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.
Method could be a function Open
def _delete_consecutive_repeats(self, word: str) -> str:
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Wrong hanging indentation before block (add 4 spaces). Open
and i + 1 <= elen
- Read upRead up
- Exclude checks
TODO and i + 1 <= elen ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and ename[i + 1] in self._frontv
- Read upRead up
- Exclude checks
TODO and ename[i + 1] in self._frontv ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and ename[i + 2] in 'OA'
- Read upRead up
- Exclude checks
TODO and ename[i + 2] in 'OA' ^ |
Too few public methods (1/2) Open
class BWTRLEF(_Fingerprint):
- Read upRead up
- Exclude checks
Used when class has too few public methods, so be sure it's really worth it.
Wrong hanging indentation before block (add 4 spaces). Open
('b', 'p'),
- Read upRead up
- Exclude checks
TODO ('b', 'p'), ^ |
Too many statements (66/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.