Showing 4,191 of 4,191 total issues
Unnecessary else
after return
Open
if self.metric:
- 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 sp
doesn't conform to snake_case naming style Open
for sp in src_pos[tok]:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name b
doesn't conform to snake_case naming style Open
b = self._src_only_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 b
doesn't conform to snake_case naming style Open
b = self._src_only_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
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Variable name sp
doesn't conform to snake_case naming style Open
for sp in src_pos[tok]:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name tp
doesn't conform to snake_case naming style Open
for tp in tar_pos[tok]:
- 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
+ _sig_sub(src_feat_wt[i - 1], tar_feat_wt[j - 1])
- Read upRead up
- Exclude checks
TODO + sigsub(srcfeatwt[i - 1], tarfeatwt[j - 1]) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
+ _sig_exp(
- Read upRead up
- Exclude checks
TODO + sigexp( ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and s_mat[i - 1, j] + _sig_skip(src_tok[i - 1]) + score
- Read upRead up
- Exclude checks
TODO and smat[i - 1, j] + _sigskip(src_tok[i - 1]) + score ^ |
Variable name i1
doesn't conform to snake_case naming style Open
for i1 in range(i - 1, -1, -1):
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name c
doesn't conform to snake_case naming style Open
c = self._tar_only_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
transforms: Optional[
- Read upRead up
- Exclude checks
TODO transforms: Optional[ ^ |
Wrong hanging indentation before block (add 4 spaces). Open
abs(sp - tp) <= self._max_dist
- Read upRead up
- Exclude checks
TODO abs(sp - tp) <= self.maxdist ^ |
Variable name tp
doesn't conform to snake_case naming style Open
for tp in tar_pos[tok]:
- 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[ ^ |
Consider using enumerate instead of iterating with range and len Open
for pos in range(len(src_list)):
- 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
**kwargs: Any
- Read upRead up
- Exclude checks
TODO **kwargs: Any ^ |
Wrong hanging indentation before block (add 4 spaces). Open
seg2b: Dict[str, float],
- Read upRead up
- Exclude checks
TODO seg2b: Dict[str, float], ^ |
Wrong hanging indentation before block (add 4 spaces). Open
+ score
- Read upRead up
- Exclude checks
TODO + score ^ |