Showing 96 of 96 total issues
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function smart_log
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def smart_log(
self: Self,
is_stderr: bool,
line: bytes,
*,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function sanitize_path
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sanitize_path(
Function add_reprs
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def add_reprs(
fields: Collection[str] | None = None,
*,
exclude: Collection[str] | Callable[[str], bool] | None | Literal[False] = None,
exclude_from_str: Collection[str] | Callable[[str], bool] | None = None,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function encoder
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def encoder(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Consider simplifying this complex logical expression. Open
Open
if (
(is_list_with_inf or is_np_array_with_inf or is_list_with_nan or is_list_with_nan)
and inf_handling is NanInfHandling.convert_to_str
and nan_handling is NanInfHandling.convert_to_str
):
Consider simplifying this complex logical expression. Open
Open
if (
(is_list_with_inf or is_np_array_with_inf)
and (is_list_with_nan or is_list_with_nan)
and inf_handling is NanInfHandling.convert_to_str
and nan_handling is NanInfHandling.convert_to_null
Consider simplifying this complex logical expression. Open
Open
if (
(is_list_with_inf or is_np_array_with_inf)
and (is_list_with_nan or is_list_with_nan)
and inf_handling is NanInfHandling.convert_to_null
and nan_handling is NanInfHandling.convert_to_str
Function smart_log
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def smart_log(
Function gen_html
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def gen_html(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function sanitize_nodes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sanitize_nodes(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function natsort
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def natsort(
Function gen_str
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def gen_str(