Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
and word[-2] in {'a', 'e', 'o', 'u'}
- Read upRead up
- Exclude checks
TODO and word[-2] in {'a', 'e', 'o', 'u'} ^ |
Unnecessary else
after return
Open
if self._acceptable(word):
- Read upRead up
- Exclude checks
Used in order to highlight an unnecessary block of code following an if containing a return statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a return statement.
Too few public methods (1/2) Open
class PaiceHusk(_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
word: str, del_len: int
- Read upRead up
- Exclude checks
TODO word: str, del_len: int ^ |
Too many branches (28/12) Open
def _stem(word: str) -> Tuple[str, float]:
- 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
r1_start >= 1
- Read upRead up
- Exclude checks
TODO r1_start >= 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ance',
- Read upRead up
- Exclude checks
TODO 'ance', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and term[-2] in self._vowels
- Read upRead up
- Exclude checks
TODO and term[-2] in self._vowels ^ |
Too few public methods (1/2) Open
class CLEFGerman(_Stemmer):
- Read upRead up
- Exclude checks
Used when class has too few public methods, so be sure it's really worth it.
Method could be a function Open
def _cond_o(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_u(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_z(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 _recode30(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
len(word[r1_start:]) >= 2
- Read upRead up
- Exclude checks
TODO len(word[r1_start:]) >= 2 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-2] not in self._vowels
- Read upRead up
- Exclude checks
TODO and word[-2] not in self._vowels ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and len(word[r2_start:]) >= 2
- Read upRead up
- Exclude checks
TODO and len(word[r2_start:]) >= 2 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-1] != 'I'
- Read upRead up
- Exclude checks
TODO and word[-1] != 'I' ^ |
Variable name n
doesn't conform to snake_case naming style Open
for n in range(7, 1, -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
'ment',
- Read upRead up
- Exclude checks
TODO 'ment', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ant',
- Read upRead up
- Exclude checks
TODO 'ant', ^ |