Showing 1,318 of 1,318 total issues
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, name: str = None, version: str = None, # pylint: disable=too-many-arguments
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, # pylint: disable=too-many-arguments
Function add_vf_module
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def add_vf_module(self, # pylint: disable=too-many-arguments
Function instantiate_ala_carte
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def instantiate_ala_carte(cls, # pylint: disable=too-many-arguments
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, # pylint: disable=too-many-arguments
Function _parse_sdc_status
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def _parse_sdc_status(sdc_status: str, distribution_state: str,
logger: logging.Logger) -> str:
"""
Parse SDC status in order to normalize it.
- 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 store_resolved_template
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def store_resolved_template(self, # pylint: disable=too-many-arguments
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, # pylint: disable=too-many-arguments
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, rb_name: str,
Function get_resolved_template
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_resolved_template(self, # pylint: disable=too-many-arguments
Function upload_vf_module_preload
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def upload_vf_module_preload(cls, # pylint: disable=too-many-arguments
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, # pylint: disable=too-many-arguments
Function send_message
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def send_message(cls, method: str, action: str, url: str, # pylint: disable=too-many-locals
Function onboard
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def onboard(self) -> None:
"""Onboard resource in SDC."""
if not self.status:
self.create()
time.sleep(self._time_wait)
- 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 create
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def create(cls,
Function onboard
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def onboard(self) -> None:
"""Onboard the Service in SDC.
Raises:
StatusError: service has an invalid status
- 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 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,
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 create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create(cls,