Showing 4,191 of 4,191 total issues
Method could be a function Open
def _cond_s(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_w(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
len(word) > 1
- Read upRead up
- Exclude checks
TODO len(word) > 1 ^ |
Too many boolean expressions in if statement (6/5) Open
len(word) >= 4
- Read upRead up
- Exclude checks
Used when an if statement contains too many boolean expressions.
Wrong hanging indentation before block (add 4 spaces). Open
'ic',
- Read upRead up
- Exclude checks
TODO 'ic', ^ |
Method could be a function Open
def _cond_aa(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 _recode32(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
max_acro_length: int = 8,
- Read upRead up
- Exclude checks
TODO maxacrolength: int = 8, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-4] in tuple('st')
- Read upRead up
- Exclude checks
TODO and word[-4] in tuple('st') ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and not self._sb_ends_in_short_syllable(word[:-1])
- Read upRead up
- Exclude checks
TODO and not self.sbendsinshort_syllable(word[:-1]) ^ |
Too few public methods (1/2) Open
class Porter2(_Snowball):
- 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_d(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_i(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_j(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_y(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_cc(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.
Too few public methods (1/2) Open
class Lovins(_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
and word[-1] == word[-2]
- Read upRead up
- Exclude checks
TODO and word[-1] == word[-2] ^ |
Wrong hanging indentation before block (add 4 spaces). Open
word[-4] not in self._vowels and word[-6:-3] != 'gem'
- Read upRead up
- Exclude checks
TODO word[-4] not in self._vowels and word[-6:-3] != 'gem' ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and word[-3] != 'e'
- Read upRead up
- Exclude checks
TODO and word[-3] != 'e' ^ |