Showing 4,191 of 4,191 total issues
Wrong hanging indentation before block (add 4 spaces). Open
'ate',
- Read upRead up
- Exclude checks
TODO 'ate', ^ |
Too many statements (177/50) Open
def stem(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
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
'ible',
- Read upRead up
- Exclude checks
TODO 'ible', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ernas',
- Read upRead up
- Exclude checks
TODO 'ernas', ^ |
Method could be a function Open
def _cond_h(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 _recode9(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:]) >= 1
- Read upRead up
- Exclude checks
TODO len(word[r1_start:]) >= 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
intact: bool,
- Read upRead up
- Exclude checks
TODO intact: bool, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
max_word_length: int = 20,
- Read upRead up
- Exclude checks
TODO maxwordlength: int = 20, ^ |
Too many return statements (16/6) Open
def _stem(word: str) -> Tuple[str, float]:
- Read upRead up
- Exclude checks
Used when a function or method has too many return statement, making it hard to follow.
Too few public methods (1/2) Open
class UEALite(_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[-3] in self._li
- Read upRead up
- Exclude checks
TODO and word[-3] in self._li ^ |
Too many return statements (7/6) Open
def stem(self, word: str) -> str:
- Read upRead up
- Exclude checks
Used when a function or method has too many return statement, making it hard to follow.
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
'heten',
- Read upRead up
- Exclude checks
TODO 'heten', ^ |
Method could be a function Open
def _cond_b(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_m(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.
Consider using enumerate instead of iterating with range and len Open
for i in range(len(word)):
- 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.