Showing 4,191 of 4,191 total issues
Variable name pe
doesn't conform to snake_case naming style Open
pe = ((2 * a + b + c) / (2 * n)) ** 2 + (
- 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
src_ln: str,
- Read upRead up
- Exclude checks
TODO src_ln: str, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
List[Tuple[int, str]], features['src_specials']
- Read upRead up
- Exclude checks
TODO List[Tuple[int, str]], features['src_specials'] ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and src_len_specials == 0
- Read upRead up
- Exclude checks
TODO and srclenspecials == 0 ^ |
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
and (tar_len_specials > 0 or src_len_specials > 0)
- Read upRead up
- Exclude checks
TODO and (tarlenspecials > 0 or srclenspecials > 0) ^ |
Access to a protected member _synoname_special_table of a client class Open
+ self._stc._synoname_special_table[ # 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 _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.
Access to a protected member _synoname_special_table of a client class Open
+ self._stc._synoname_special_table[ # 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 _synoname_special_table of a client class Open
self._stc._synoname_special_table[ # 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.
Unnecessary elif
after return
Open
if fn_equal and (self._lev.dist_abs(src_ln, tar_ln) == 1):
- 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.
Too many statements (105/50) Open
def sim_type(
- 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
**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', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or (src_fn and tar_fn.startswith(src_fn))
- Read upRead up
- Exclude checks
TODO or (srcfn and tarfn.startswith(src_fn)) ^ |
Access to a protected member _cost of a client class Open
self._lev._cost = (1, 1, 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.
Access to a protected member _mode of a client class Open
self._lev._mode = 'lev' # 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.