Orange-OpenSource/python-onapsdk

View on GitHub
src/onapsdk/sdc/sdc_resource.py

Summary

Maintainability
D
2 days
Test Coverage
A
95%

File sdc_resource.py has 742 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: Apache-2.0
"""SDC Element module."""
import logging
Severity: Major
Found in src/onapsdk/sdc/sdc_resource.py - About 1 day to fix

    Function deep_load has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
    Open

        def deep_load(self) -> None:
            """Deep load Object informations from SDC."""
            url = (
                f"{self.base_front_url}/sdc1/feProxy/rest/v1/"
                "screen?excludeTypes=VFCMT&excludeTypes=Configuration"
    Severity: Minor
    Found in src/onapsdk/sdc/sdc_resource.py - About 2 hrs to fix

    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

    Cyclomatic complexity is too high in method _parse_sdc_status. (9)
    Open

        @staticmethod
        def _parse_sdc_status(sdc_status: str, distribution_state: str,
                              logger: logging.Logger) -> str:
            """
            Parse SDC status in order to normalize it.
    Severity: Minor
    Found in src/onapsdk/sdc/sdc_resource.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method deep_load. (9)
    Open

        def deep_load(self) -> None:
            """Deep load Object informations from SDC."""
            url = (
                f"{self.base_front_url}/sdc1/feProxy/rest/v1/"
                "screen?excludeTypes=VFCMT&excludeTypes=Configuration"
    Severity: Minor
    Found in src/onapsdk/sdc/sdc_resource.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method onboard. (7)
    Open

        def onboard(self) -> None:
            """Onboard resource in SDC."""
            if not self.status:
                self.create()
                time.sleep(self._time_wait)
    Severity: Minor
    Found in src/onapsdk/sdc/sdc_resource.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    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
    Severity: Major
    Found in src/onapsdk/sdc/sdc_resource.py - About 1 hr to fix

      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.
      
      
      Severity: Minor
      Found in src/onapsdk/sdc/sdc_resource.py - About 55 mins to fix

      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 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)
      Severity: Minor
      Found in src/onapsdk/sdc/sdc_resource.py - About 45 mins to fix

      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 _action_url has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def _action_url(self,
      Severity: Minor
      Found in src/onapsdk/sdc/sdc_resource.py - About 35 mins to fix

        Function add_deployment_artifact has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def add_deployment_artifact(self, artifact_type: str, artifact_label: str,
        Severity: Minor
        Found in src/onapsdk/sdc/sdc_resource.py - About 35 mins to fix

          Avoid too many return statements within this function.
          Open

                      return const.UNDER_CERTIFICATION
          Severity: Major
          Found in src/onapsdk/sdc/sdc_resource.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return sdc_status
            Severity: Major
            Found in src/onapsdk/sdc/sdc_resource.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return const.SUBMITTED
              Severity: Major
              Found in src/onapsdk/sdc/sdc_resource.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return None
                Severity: Major
                Found in src/onapsdk/sdc/sdc_resource.py - About 30 mins to fix

                  Line too long (94 > 79 characters)
                  Open

                          Abstract method which should be implemented by subclasses and creates resource in SDC.
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (88 > 79 characters)
                  Open

                                                 f"Set {input_obj.name} default value to {default_value}",
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (84 > 79 characters)
                  Open

                                                     "sdc_resource_set_input_default_value.json.j2").\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                                                         render(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (84 > 79 characters)
                  Open

                      def declare_input(self, input_to_declare: Union[Property, NestedInput]) -> None:
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (86 > 79 characters)
                  Open

                                   sdc_values: Dict[str, str] = None, properties: List[Property] = None,
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (81 > 79 characters)
                  Open

                                      self._subcategory_name = None if subcategories is None else \
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (93 > 79 characters)
                  Open

                                  f"{self.resource_inputs_url}/filteredDataByParams?include=componentInstances"
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                              sdc_resource: "SdcResource" = SdcResource.import_from_sdc(self.send_message_json(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  The backslash is redundant between brackets
                  Open

                          for property_data in self.send_message_json(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (80 > 79 characters)
                  Open

                          If no category values are provided default category is going to be used.
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                                                 data=jinja_env().get_template(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  The backslash is redundant between brackets
                  Open

                          for component_instance in self.send_message_json(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Continuation line over-indented for visual indent
                  Open

                                                      render(
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Line too long (81 > 79 characters)
                  Open

                          self._logger.debug("Declare input for SDC resource's component property")
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Continuation line over-indented for visual indent
                  Open

                                                      render(
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Line too long (87 > 79 characters)
                  Open

                                                 f"Add deployment artifact for {self.name} sdc resource",
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (84 > 79 characters)
                  Open

                                                 f"Declare new property for {self.name} sdc resource",
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                                                     "sdc_resource_add_property.json.j2").\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (84 > 79 characters)
                  Open

                      def set_input_default_value(self, input_obj: Input, default_value: Any) -> None:
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (98 > 79 characters)
                  Open

                      def __init__(self, name: str = None, version: str = None, # pylint: disable=too-many-arguments
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                                                     "sdc_resource_add_input.json.j2").\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (87 > 79 characters)
                  Open

                              input_declaration (Union[Property, NestedInput]): Property to declare input
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (82 > 79 characters)
                  Open

                              if distribution_state and distribution_state == const.SDC_DISTRIBUTED:
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (80 > 79 characters)
                  Open

                              ParameterError: if the given property is not the resource's property
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (91 > 79 characters)
                  Open

                                                         f"Add {resource.origin_type} to {self.origin_type}",
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (112 > 79 characters)
                  Open

                  class SdcResource(SdcOnboardable, ABC):  # pylint: disable=too-many-instance-attributes, too-many-public-methods
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (94 > 79 characters)
                  Open

                              sdc_resource: "SdcResource" = SdcResource.import_from_sdc(self.send_message_json(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Continuation line over-indented for visual indent
                  Open

                                                         render(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Too many blank lines (2)
                  Open

                      def create(self) -> None:
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Separate top-level function and class definitions with two blank lines.

                  Method definitions inside a class are separated by a single blank
                  line.
                  
                  Extra blank lines may be used (sparingly) to separate groups of
                  related functions.  Blank lines may be omitted between a bunch of
                  related one-liners (e.g. a set of dummy implementations).
                  
                  Use blank lines in functions, sparingly, to indicate logical
                  sections.
                  
                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                  Okay: default = 1\nfoo = 1
                  Okay: classify = 1\nfoo = 1
                  
                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                  E303: def a():\n\n\n\n    pass
                  E304: @decorator\n\ndef a():\n    pass
                  E305: def a():\n    pass\na()
                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                  Continuation line over-indented for visual indent
                  Open

                                  render(artifact_name=artifact_name,
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Line too long (87 > 79 characters)
                  Open

                          my_header = headers_sdc_artifact_upload(base_header=self.headers, data=my_data)
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                                                 data=jinja_env().get_template(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  The backslash is redundant between brackets
                  Open

                                                     "sdc_resource_set_input_default_value.json.j2").\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (87 > 79 characters)
                  Open

                                                                               "Get service dependecies",
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (99 > 79 characters)
                  Open

                                                                               f"{self._base_create_url()}/services/"
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (81 > 79 characters)
                  Open

                                  (f"{self.base_front_url}/sdc1/feProxy/rest/v1/catalog/resources/"
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (84 > 79 characters)
                  Open

                                  f"{self.unique_identifier}/filteredDataByParams?include=properties")
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (92 > 79 characters)
                  Open

                              artifact_label (str): Unique Identifier of the artifact within the VF / Service.
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                                                     "sdc_resource_add_nested_input.json.j2").\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (88 > 79 characters)
                  Open

                                      subcategories = resource["categories"][0].get("subcategories", [{}])
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                          for input_data in self.send_message_json(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (81 > 79 characters)
                  Open

                          Depends on the resource type returns ResourceCategory or ServiceCategory.
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (85 > 79 characters)
                  Open

                                                 f"Declare new input for {property_obj.name} property",
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  The backslash is redundant between brackets
                  Open

                                                         render(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (92 > 79 characters)
                  Open

                                                 f"Declare new input for {nested_input.input_obj.name} input",
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Continuation line over-indented for visual indent
                  Open

                                                      render(
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  The backslash is redundant between brackets
                  Open

                                                     "sdc_resource_set_property_value.json.j2").\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Line too long (93 > 79 characters)
                  Open

                                  f"{self.unique_identifier}/filteredDataByParams?include=deploymentArtifacts")
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (97 > 79 characters)
                  Open

                          return ResourceCategory.get(name=self._category_name, subcategory=self._subcategory_name)
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  At least two spaces before inline comment
                  Open

                      def __init__(self, name: str = None, version: str = None, # pylint: disable=too-many-arguments
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Line too long (85 > 79 characters)
                  Open

                              yield Component.create_from_api_response(api_response=component_instance,
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (86 > 79 characters)
                  Open

                          msg = f"Can't add resource to {self.origin_type} which is not in DRAFT status"
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (87 > 79 characters)
                  Open

                                                                               f"{resource['uniqueId']}/"
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (91 > 79 characters)
                  Open

                              artifact_type (str): all SDC artifact types are supported (DCAE_*, HEAT_*, ...)
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Line too long (84 > 79 characters)
                  Open

                      def get_component_properties_value_set_url(self, component: "Component") -> str:
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Limit all lines to a maximum of 79 characters.

                  There are still many devices around that are limited to 80 character
                  lines; plus, limiting windows to 80 characters makes it possible to
                  have several windows side-by-side.  The default wrapping on such
                  devices looks ugly.  Therefore, please limit all lines to a maximum
                  of 79 characters. For flowing long blocks of text (docstrings or
                  comments), limiting the length to 72 characters is recommended.
                  
                  Reports error E501.

                  Continuation line over-indented for visual indent
                  Open

                                                         render(\
                  Severity: Minor
                  Found in src/onapsdk/sdc/sdc_resource.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  There are no issues that match your filters.

                  Category
                  Status