Orange-OpenSource/python-onapsdk

View on GitHub

Showing 1,318 of 1,318 total issues

File instantiation.py has 812 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: Apache-2.0
"""Instantion module."""
from abc import ABC
Severity: Major
Found in src/onapsdk/so/instantiation.py - About 1 day to fix

    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

      File service.py has 740 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

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

        File blueprint.py has 640 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # SPDX-License-Identifier: Apache-2.0
        """CDS Blueprint module."""
        import json
        import re
        from dataclasses import dataclass, field
        Severity: Major
        Found in src/onapsdk/cds/blueprint.py - About 1 day to fix

          File cloud_region.py has 529 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          """Cloud region module."""
          from dataclasses import dataclass
          from typing import Any, Dict, Iterator, List, Optional
          from urllib.parse import urlencode
          
          
          Severity: Major
          Found in src/onapsdk/aai/cloud_infrastructure/cloud_region.py - About 1 day to fix

            File customer.py has 491 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            """AAI business module."""
            from dataclasses import dataclass
            from typing import Iterable, Iterator, Optional
            from urllib.parse import urlencode
            
            
            Severity: Minor
            Found in src/onapsdk/aai/business/customer.py - About 7 hrs to fix

              File vnf.py has 457 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              """Vnf instance module."""
              
              from typing import Iterable, Iterator
              
              from onapsdk.exceptions import ResourceNotFound, StatusError
              Severity: Minor
              Found in src/onapsdk/aai/business/vnf.py - About 7 hrs to fix

                Function __init__ has 51 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def __init__(self,  # pylint: disable=too-many-arguments, too-many-locals
                Severity: Major
                Found in src/onapsdk/aai/business/vnf.py - About 6 hrs to fix

                  File service.py has 409 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  """Service instance module."""
                  
                  from typing import Iterator, Type, Union, Iterable, Optional
                  
                  from onapsdk.exceptions import StatusError, ParameterError
                  Severity: Minor
                  Found in src/onapsdk/aai/business/service.py - About 5 hrs to fix

                    File nbi.py has 394 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    #!/usr/bin/env python3
                    # -*- coding: utf-8 -*-
                    # SPDX-License-Identifier: Apache-2.0
                    """NBI module."""
                    from abc import ABC
                    Severity: Minor
                    Found in src/onapsdk/nbi/nbi.py - About 5 hrs to fix

                      File __init__.py has 371 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."""
                      from typing import Any, Dict, List, Optional, Union
                      Severity: Minor
                      Found in src/onapsdk/sdc/__init__.py - About 4 hrs to fix

                        File definition.py has 336 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        """Definition module."""
                        from typing import Iterator
                        from dataclasses import dataclass
                        
                        from onapsdk.utils.jinja import jinja_env
                        Severity: Minor
                        Found in src/onapsdk/msb/k8s/definition.py - About 4 hrs to fix

                          Function __init__ has 31 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def __init__(self,  # pylint: disable=too-many-arguments, too-many-locals
                          Severity: Major
                          Found in src/onapsdk/aai/business/pnf.py - About 3 hrs to fix

                            Function __init__ has 29 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def __init__(self,  # pylint: disable=too-many-arguments, too-many-locals
                            Severity: Major
                            Found in src/onapsdk/aai/business/network.py - About 3 hrs to fix

                              Vsp has 28 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class Vsp(SdcElement): # pylint: disable=too-many-instance-attributes
                                  """
                                  ONAP VSP Object used for SDC operations.
                              
                                  Attributes:
                              Severity: Minor
                              Found in src/onapsdk/sdc/vsp.py - About 3 hrs to fix

                                File vsp.py has 296 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                #!/usr/bin/env python3
                                # -*- coding: utf-8 -*-
                                # SPDX-License-Identifier: Apache-2.0
                                """VSP module."""
                                import json
                                Severity: Minor
                                Found in src/onapsdk/sdc/vsp.py - About 3 hrs to fix

                                  Function create has 24 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def create(cls,  # pylint: disable=too-many-locals
                                  Severity: Major
                                  Found in src/onapsdk/aai/cloud_infrastructure/complex.py - About 3 hrs to fix

                                    Function create has 24 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def create(cls, service_subscription: "ServiceSubscription",  # pylint: disable=too-many-arguments, too-many-locals
                                    Severity: Major
                                    Found in src/onapsdk/aai/business/service.py - About 3 hrs to fix

                                      Function add_esr_system_info has 23 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def add_esr_system_info(self,  # pylint: disable=too-many-arguments, too-many-locals
                                      Severity: Major
                                      Found in src/onapsdk/aai/cloud_infrastructure/cloud_region.py - About 2 hrs to fix

                                        Function __init__ has 23 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def __init__(self,  # pylint: disable=too-many-locals
                                        Severity: Major
                                        Found in src/onapsdk/aai/cloud_infrastructure/complex.py - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language