Showing 4,191 of 4,191 total issues
Consider using enumerate instead of iterating with range and len Open
for i in range(len(p)):
- 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.
Wrong hanging indentation before block (add 4 spaces). Open
in full_src2
- Read upRead up
- Exclude checks
TODO in full_src2 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tar2_num_words == 1
- Read upRead up
- Exclude checks
TODO tar2numwords == 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and tar2_words[0] == src2_words[0]
- Read upRead up
- Exclude checks
TODO and tar2words[0] == src2words[0] ^ |
Wrong hanging indentation before block (add 4 spaces). Open
word_approx_min: float = 0.3,
- Read upRead up
- Exclude checks
TODO wordapproxmin: float = 0.3, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
force_numeric: bool = False,
- Read upRead up
- Exclude checks
TODO force_numeric: bool = False, ^ |
Access to a protected member _synoname_special_table of a client class Open
self._stc._synoname_special_table[s_pos][ # 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.
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...).
Variable name p
doesn't conform to snake_case naming style Open
p = np_array([[a, b], [c, d]]) / n
- 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
alphabet: Optional[
- Read upRead up
- Exclude checks
TODO alphabet: Optional[ ^ |
Variable name n
doesn't conform to snake_case naming style Open
n = a + b + c + d
- 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
tar1_num_words == 1
- Read upRead up
- Exclude checks
TODO tar1numwords == 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and src1_num_words == 1
- Read upRead up
- Exclude checks
TODO and src1numwords == 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and src2_num_words == 1
- Read upRead up
- Exclude checks
TODO and src2numwords == 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
ret_name: bool = False,
- Read upRead up
- Exclude checks
TODO ret_name: bool = False, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
src_ln.startswith(tar_ln) or tar_ln.startswith(src_ln)
- Read upRead up
- Exclude checks
TODO srcln.startswith(tarln) or tarln.startswith(srcln) ^ |
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.
Too many boolean expressions in if statement (6/5) Open
if matches > 1 or (
- Read upRead up
- Exclude checks
Used when an if statement contains too many boolean expressions.
Too many return statements (18/6) Open
def sim_type(
- 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
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |