Showing 97 of 1,318 total issues
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self,
Function create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create(cls,
Function _action_url
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def _action_url(self,
Function create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create(cls,
Function add_artifact_to_vf
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def add_artifact_to_vf(self, vnf_name: str, artifact_type: str,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, rb_name: str,
Function create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create(cls, rb_name: str,
Function send_message_json
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def send_message_json(cls, method: str, action: str, url: str,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, instance_id: str,
Avoid too many return
statements within this function. Open
return const.SUBMITTED
Avoid too many return
statements within this function. Open
return sdc_status
Avoid too many return
statements within this function. Open
return None
Avoid too many return
statements within this function. Open
return const.UNDER_CERTIFICATION
Function vf_module
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def vf_module(self) -> "VfModule":
"""Vf module associated with that vf module instance.
Returns:
VfModule: VfModule object associated with vf module instance
- 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 get_vf_list_from_tosca_file
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def get_vf_list_from_tosca_file(model: str) -> List:
"""Get the list of Vfs of a VNF based on the tosca file.
Args:
model (str): the model retrieved from the tosca file at Vnf
- 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 vnf
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def vnf(self) -> "Vnf":
"""Vnf associated with that vnf instance.
Raises:
ResourceNotFound: Could not find VNF for that VNF instance
- 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 pnf
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def pnf(self) -> "Pnf":
"""Pnf associated with that pnf instance.
Raises:
ResourceNotFound: Could not find PNF for that PNF instance
- 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"