Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
and word[-1] in {'Y', 'y'}
- Read upRead up
- Exclude checks
TODO and word[-1] in {'Y', 'y'} ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and len(word[r1_start:]) >= 2
- Read upRead up
- Exclude checks
TODO and len(word[r1_start:]) >= 2 ^ |
Method could be a function Open
def _cond_f(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_p(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.
Wrong hanging indentation before block (add 4 spaces). Open
and word[-1] not in self._vowels
- Read upRead up
- Exclude checks
TODO and word[-1] not in self._vowels ^ |
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
'ement',
- Read upRead up
- Exclude checks
TODO 'ement', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'able',
- Read upRead up
- Exclude checks
TODO 'able', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ornas',
- Read upRead up
- Exclude checks
TODO 'ornas', ^ |
Method could be a function Open
def _cond_r(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_v(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.
Wrong hanging indentation before block (add 4 spaces). Open
word[-2:] == 'ig'
- Read upRead up
- Exclude checks
TODO word[-2:] == 'ig' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and len(word) - 1 > self._max_acro_length
- Read upRead up
- Exclude checks
TODO and len(word) - 1 > self.maxacro_length ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ent',
- Read upRead up
- Exclude checks
TODO 'ent', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ous',
- Read upRead up
- Exclude checks
TODO 'ous', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and len(word) >= 4
- Read upRead up
- Exclude checks
TODO and len(word) >= 4 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
term
- Read upRead up
- Exclude checks
TODO term ^ |
Consider using enumerate instead of iterating with range and len Open
for i in range(len(term)):
- Read upRead up
- Exclude checks
Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.
Too few public methods (1/2) Open
class _Snowball(_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
'anden',
- Read upRead up
- Exclude checks
TODO 'anden', ^ |