Showing 4,191 of 4,191 total issues
Too many arguments (8/5) Open
def _phonetic(
- Read upRead up
- Exclude checks
Used when a function or method takes too many arguments.
Too many branches (23/12) Open
def _phonetic(
- Read upRead up
- Exclude checks
Used when a function or method has too many branches, making it hard to follow.
Consider using enumerate instead of iterating with range and len Open
for i in range(len(alt_array)):
- 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.
Redefining argument with the local name 'resource_name' Open
for resource_name in coll[2]:
- Read upRead up
- Exclude checks
Used when a local name is redefining an argument, which might suggest a potential error. This is taken in account only for a handful of name binding operations, such as for iteration, with statement assignment and exception handler assignment.
Too many nested blocks (7/5) Open
for coll in collections:
- Read upRead up
- Exclude checks
Used when a function or a method has too many nested blocks. This makes the code less understandable and maintainable.
Wrong hanging indentation before block (add 4 spaces). Open
'ades',
- Read upRead up
- Exclude checks
TODO 'ades', ^ |
Too many branches (13/12) Open
def download_package(
- 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
'erns',
- Read upRead up
- Exclude checks
TODO 'erns', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'ens',
- Read upRead up
- Exclude checks
TODO 'ens', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'het',
- Read upRead up
- Exclude checks
TODO 'het', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
rules: Tuple[Any, ...],
- Read upRead up
- Exclude checks
TODO rules: Tuple[Any, ...], ^ |
Wrong hanging indentation before block (add 4 spaces). Open
'iuntur',
- Read upRead up
- Exclude checks
TODO 'iuntur', ^ |
Wrong hanging indentation before block (add 4 spaces). Open
final_rules1: Tuple[Any, ...],
- Read upRead up
- Exclude checks
TODO final_rules1: Tuple[Any, ...], ^ |
Wrong hanging indentation before block (add 4 spaces). Open
url: Optional[str] = None,
- Read upRead up
- Exclude checks
TODO url: Optional[str] = None, ^ |
Method could be a function Open
def _language(self, name: str, name_mode: str) -> int:
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Too many arguments (7/5) Open
def _redo_language(
- Read upRead up
- Exclude checks
Used when a function or method takes too many arguments.
Parameters differ from overridden 'encode_alpha' method Open
def encode_alpha(self, fname: str) -> str:
- Read upRead up
- Exclude checks
Used when a method has a different number of arguments than in the implemented interface or in an overridden method.
Consider using enumerate instead of iterating with range and len Open
for i in range(len(candidate_array)):
- 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
name_mode: str,
- Read upRead up
- Exclude checks
TODO name_mode: str, ^ |
Too many arguments (6/5) Open
def __init__(
- Read upRead up
- Exclude checks
Used when a function or method takes too many arguments.