Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
word[:hyphen].isalpha()
- Read upRead up
- Exclude checks
TODO word[:hyphen].isalpha() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[hyphen + 1 :].isalpha()
- Read upRead up
- Exclude checks
TODO and word[hyphen + 1 :].isalpha() ^ |
Wrong hanging indentation before block (add 4 spaces). Open
r'^[a-z](|[rl])(ing|ed)$', word
- Read upRead up
- Exclude checks
TODO r'^[a-z](|[rl])(ing|ed)$', word ^ |
Too few public methods (1/2) Open
class SStemmer(_Stemmer):
- 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
self, term: str, r1_prefixes: Optional[Iterable[str]] = None
- Read upRead up
- Exclude checks
TODO self, term: str, r1_prefixes: Optional[Iterable[str]] = None ^ |
Wrong hanging indentation before block (add 4 spaces). Open
word[i] == 'i'
- Read upRead up
- Exclude checks
TODO word[i] == 'i' ^ |
Method could be a function Open
def _has_vowel(self, word: str) -> bool:
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Variable name n
doesn't conform to snake_case naming style Open
for n in range(6, 0, -1):
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Wrong hanging indentation before block (add 4 spaces). Open
word == 'menses' and self._var == 'Adams'
- Read upRead up
- Exclude checks
TODO word == 'menses' and self._var == 'Adams' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and len(word[r1_start:]) >= 3
- Read upRead up
- Exclude checks
TODO and len(word[r1_start:]) >= 3 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ive',
- Read upRead up
- Exclude checks
TODO 'ive', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and term[-1] in self._codanonvowels
- Read upRead up
- Exclude checks
TODO and term[-1] in self._codanonvowels ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'arnas',
- Read upRead up
- Exclude checks
TODO 'arnas', ^ |
Method could be a function Open
def _cond_l(self, word: str, suffix_len: int) -> bool:
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Method could be a function Open
def _cond_q(self, word: str, suffix_len: int) -> bool:
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Method could be a function Open
def _recode28(self, stem: 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 word[i - 1] in self._vowels
- Read upRead up
- Exclude checks
TODO and word[i - 1] in self._vowels ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-2] not in self._not_s_endings
- Read upRead up
- Exclude checks
TODO and word[-2] not in self.nots_endings ^ |
Wrong hanging indentation before block (add 4 spaces). Open
word: str,
- Read upRead up
- Exclude checks
TODO word: str, ^ |
Too many statements (54/50) Open
def _stem_and_rule(self, word: str) -> Tuple[str, float]:
- Read upRead up
- Exclude checks
Used when a function or method has too many statements. You should then split it in smaller functions / methods.