Showing 4,191 of 4,191 total issues
Method could be a function Open
def _normalize_lang_attrs(self, text: str, strip: bool) -> str:
- 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 CLEFGermanPlus(_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 _language_index_from_code(self, code: int, name_mode: str) -> int:
- 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
'iunt',
- Read upRead up
- Exclude checks
TODO 'iunt', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
reverse: bool = False,
- Read upRead up
- Exclude checks
TODO reverse: bool = False, ^ |
Variable name nv
doesn't conform to snake_case naming style Open
nv = self.stem_dict(word)
- 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
'recurse' not in kwargs or kwargs['recurse'] is not False
- Read upRead up
- Exclude checks
TODO 'recurse' not in kwargs or kwargs['recurse'] is not False ^ |
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 ^ |
Too many branches (46/12) Open
def stem(self, word: str) -> str:
- 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
silent: bool = False,
- Read upRead up
- Exclude checks
TODO silent: bool = False, ^ |
Redefining argument with the local name 'path' Open
for path in paths:
- Read upRead up
- Exclude checks
Used when a local name is redefining an argument, which might suggest a potential error. This is taken in account only for a handful of name binding operations, such as for iteration, with statement assignment and exception handler assignment.
Wrong hanging indentation before block (add 4 spaces). Open
rules: Tuple[Any, ...],
- Read upRead up
- Exclude checks
TODO rules: Tuple[Any, ...], ^ |
Wrong hanging indentation before block (add 4 spaces). Open
final_rules: Tuple[Any, ...],
- Read upRead up
- Exclude checks
TODO final_rules: Tuple[Any, ...], ^ |
Wrong hanging indentation before block (add 4 spaces). Open
_LANG_DICT[_] for _ in BMDATA[name_mode]['languages']
- Read upRead up
- Exclude checks
TODO LANGDICT[_] for _ in BMDATA[name_mode]['languages'] ^ |
Method could be a function Open
def _remove_dupes(self, phonetic: 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
'ene',
- Read upRead up
- Exclude checks
TODO 'ene', ^ |
Too few public methods (1/2) Open
class Caumanns(_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,
- Read upRead up
- Exclude checks
TODO self, ^ |
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
'ert',
- Read upRead up
- Exclude checks
TODO 'ert', ^ |