Showing 1,318 of 1,318 total issues
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, # pylint: disable=too-many-arguments
Function instantiate_ala_carte
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def instantiate_ala_carte(cls, # pylint: disable=too-many-arguments
Function instantiate_ala_carte
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def instantiate_ala_carte(cls, # pylint: disable=too-many-arguments
Function __init__
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, # pylint: disable=too-many-arguments, too-many-locals
service_instance: "ServiceInstance",
pnf_name: str,
in_maint: bool,
selflink: str = None,
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function create
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create(cls, # pylint: disable=too-many-arguments
Function instantiate_ala_carte
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def instantiate_ala_carte(cls, # pylint: disable=too-many-arguments
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, name: str = None, version: str = None, vendor: Vendor = None, # pylint: disable=too-many-arguments
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, name: str = None, version: str = None, sdc_values: Dict[str, str] = None, # pylint: disable=too-many-arguments
Function create_node_template
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
Open
def create_node_template(self,
node_template_type: Type[NodeTemplate],
component: "Component") -> NodeTemplate:
"""Create a node template type object.
- 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 so_action
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def so_action(cls, # pylint: disable=too-many-arguments, too-many-locals
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, sp_partner_id: str, resource_version: str, url: str = None, # pylint: disable=too-many-arguments, too-many-locals
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, # pylint: disable=too-many-arguments
Function add_network
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add_network(self, # pylint: disable=too-many-arguments
Function create
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create(cls, sp_partner_id: str, url: str = "", callsource: str = "", # pylint: disable=too-many-arguments
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, # pylint: disable=too-many-arguments
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, blueprint: "Blueprint", # pylint: disable=too-many-arguments
Function onboard
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
Open
def onboard(self) -> None:
"""Onboard the VSP in SDC."""
status: Optional[str] = self.status
if not status:
if not self._vendor:
- 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 __init__
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, # pylint: disable=too-many-arguments, too-many-locals
service_instance: "ServiceInstance",
network_id: str,
is_bound_to_vpn: bool,
is_provider_network: bool,
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, # pylint: disable=too-many-arguments