Showing 4,191 of 4,191 total issues
Too many statements (52/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
and ename[i + 2] in {'A', 'O'}
- Read upRead up
- Exclude checks
TODO and ename[i + 2] in {'A', 'O'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
('q', 'k'),
- Read upRead up
- Exclude checks
TODO ('q', 'k'), ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and lokal_ordet[1:2] in self._harde_vokaler
- Read upRead up
- Exclude checks
TODO and lokalordet[1:2] in self.harde_vokaler ^ |
Wrong hanging indentation before block (add 4 spaces). Open
lokal_ordet[0:2] == 'SK'
- Read upRead up
- Exclude checks
TODO lokal_ordet[0:2] == 'SK' ^ |
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.
Line too long (116/100) Open
# if "pattern" matches and acceptance is true, name is in one of the languages indicated and no others # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Line too long (105/100) Open
# These rules are applied after the word has been transliterated into the phonetic alphabet # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Line too long (107/100) Open
# if "pattern" matches and acceptance is false, name is not in any of the languages indicated # noqa: E501
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Too many statements (54/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
name
- Read upRead up
- Exclude checks
TODO name ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[pos + len(sstr)] in self._uc_v_set
- Read upRead up
- Exclude checks
TODO and word[pos + len(sstr)] in self.ucv_set ^ |
Too many statements (55/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
ename[i] not in {'G', 'T'}
- Read upRead up
- Exclude checks
TODO ename[i] not in {'G', 'T'} ^ |
Unnecessary else
after continue
Open
if i > 0 and ename[i - 1] == 'C':
- 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 few public methods (1/2) Open
class _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
most_common: Tuple[str, ...] = MOST_COMMON_LETTERS_CG,
- Read upRead up
- Exclude checks
TODO mostcommon: Tuple[str, ...] = MOSTCOMMONLETTERSCG, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
('tch', '2ch'),
- Read upRead up
- Exclude checks
TODO ('tch', '2ch'), ^ |
Wrong hanging indentation before block (add 4 spaces). Open
('v', 'f'),
- Read upRead up
- Exclude checks
TODO ('v', 'f'), ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and lokal_ordet[1:2] in self._mjuka_vokaler
- Read upRead up
- Exclude checks
TODO and lokalordet[1:2] in self.mjuka_vokaler ^ |