graphqler/fuzzer/fengine/materializers/materializer.py
Function materialize_output_recursive
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
Open
def materialize_output_recursive(self,
operator_info: dict,
output_field: dict,
used_objects: list[str],
objects_bucket: ObjectsBucket,
- 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 materialize_input_recursive
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
Open
def materialize_input_recursive(self,
operator_info: dict,
input_field: dict,
objects_bucket: ObjectsBucket,
input_name: str,
- 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
File materializer.py
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""Materializer:
Base class for a regular materializer
"""
from ..exceptions.hard_dependency_not_met_exception import HardDependencyNotMetException
Function materialize_output_recursive
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def materialize_output_recursive(self,
Function materialize_input_recursive
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def materialize_input_recursive(self,
Function materialize_output_object_fields
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def materialize_output_object_fields(self,
Function materialize_input_fields
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def materialize_input_fields(self, operator_info: dict, inputs: dict, objects_bucket: ObjectsBucket, max_depth: int, current_depth: int = 0) -> str: