Showing 4,191 of 4,191 total issues
Variable name n
doesn't conform to snake_case naming style Open
n = max(len(src_only_tok), len(tar_only_tok))
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Consider using enumerate instead of iterating with range and len Open
for col in range(len(src_only_tok)):
- 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.
Unnecessary else
after break
Open
if not z_cols.size:
- Read upRead up
- Exclude checks
Used in order to highlight an unnecessary block of code following an if containing a break statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a break statement.
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
tar_ln: str,
- Read upRead up
- Exclude checks
TODO tar_ln: str, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
tar_fn: str = '',
- Read upRead up
- Exclude checks
TODO tar_fn: str = '', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'with the ',
- Read upRead up
- Exclude checks
TODO 'with the ', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
or (tar_fn and src_fn.startswith(tar_fn))
- Read upRead up
- Exclude checks
TODO or (tarfn and srcfn.startswith(tar_fn)) ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'roman_conflict' in features and features['roman_conflict']
- Read upRead up
- Exclude checks
TODO 'romanconflict' in features and features['romanconflict'] ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and self._stc._synoname_special_table[s_pos][1] # noqa: SF01
- Read upRead up
- Exclude checks
TODO and self.stc.synonamespecialtable[s_pos][1] # noqa: SF01 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
and tar1_num_words == 1
- Read upRead up
- Exclude checks
TODO and tar1numwords == 1 ^ |
Wrong hanging indentation before block (add 4 spaces). Open
src: Union[str, Tuple[str, str, str]],
- Read upRead up
- Exclude checks
TODO src: Union[str, Tuple[str, str, str]], ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'with the ',
- Read upRead up
- Exclude checks
TODO 'with the ', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
(not src_len_fn and not tar_len_fn)
- Read upRead up
- Exclude checks
TODO (not srclenfn and not tarlenfn) ^ |
Too many return statements (10/6) Open
def _synoname_word_approximation(
- Read upRead up
- Exclude checks
Used when a function or method has too many return statement, making it hard to follow.
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.
Unused variable 'approx_c_result' Open
approx_c_result, ca_ratio = _approx_c()
- Read upRead up
- Exclude checks
Used when a variable is defined but not used.
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
tokenizer: Optional[_Tokenizer] = None,
- Read upRead up
- Exclude checks
TODO tokenizer: Optional[_Tokenizer] = None, ^ |
Wrong hanging indentation before block (add 4 spaces). Open
intersection_type: str = 'crisp',
- Read upRead up
- Exclude checks
TODO intersection_type: str = 'crisp', ^ |