Showing 4,191 of 4,191 total issues
Too many branches (38/12) Open
def sim_type(
- 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
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and tar_len_specials == 0
- Read upRead up
- Exclude checks
TODO and tarlenspecials == 0 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and tar2_num_words == 1
- Read upRead up
- Exclude checks
TODO and tar2numwords == 1 ^ |
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
'known as the ',
- Read upRead up
- Exclude checks
TODO 'known as the ', ^ |
Too many arguments (6/5) Open
def _synoname_word_approximation(
- Read upRead up
- Exclude checks
Used when a function or method takes too many arguments.
Access to a protected member _synoname_special_table of a client class Open
and self._stc._synoname_special_table[s_pos][1] # noqa: SF01
- Read upRead up
- Exclude checks
Used when a protected member (i.e. class member with a name beginning with an underscore) is access outside the class or a descendant of the class where it's defined.
Access to a protected member _cost of a client class Open
self._lev._cost = (1, 99, 99, 99) # noqa: SF01
- Read upRead up
- Exclude checks
Used when a protected member (i.e. class member with a name beginning with an underscore) is access outside the class or a descendant of the class where it's defined.
Too many boolean expressions in if statement (7/5) Open
if (
- Read upRead up
- Exclude checks
Used when an if statement contains too many boolean expressions.
Wrong hanging indentation before block (add 4 spaces). Open
self,
- Read upRead up
- Exclude checks
TODO self, ^ |
Unnecessary else
after return
Open
if not delta_ab:
- 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.
Variable name d
doesn't conform to snake_case naming style Open
d = self._total_complement_card()
- 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
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Variable name a
doesn't conform to snake_case naming style Open
a = self._intersection_card()
- 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
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |