zhmcclient/python-zhmcclient

View on GitHub
zhmcclient_mock/_urihandler.py

Summary

Maintainability
F
1 mo
Test Coverage

File _urihandler.py has 4434 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2016,2021 IBM Corp. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Severity: Major
Found in zhmcclient_mock/_urihandler.py - About 1 wk to fix

    Function post has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
    Open

        def post(method, hmc, uri, uri_parms, body, logon_required,
                 wait_for_completion):
            # pylint: disable=unused-argument
            """Operation: Submit Requests."""
            assert wait_for_completion is True  # async not supported yet
    Severity: Minor
    Found in zhmcclient_mock/_urihandler.py - About 4 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

    Function post has 96 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def post(method, hmc, uri, uri_parms, body, logon_required,
                 wait_for_completion):
            # pylint: disable=unused-argument
            """Operation: Create Partition (requires DPM mode)."""
    
    
    Severity: Major
    Found in zhmcclient_mock/_urihandler.py - About 3 hrs to fix

      Function get has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
      Open

          def get(cls, method, hmc, uri, uri_parms, logon_required):
              # pylint: disable=unused-argument
              """Operation: List Permitted LPARs."""
              uri, query_parms = parse_query_parms(method, uri)
              check_invalid_query_parms(
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 3 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

      Function get has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
      Open

          def get(cls, method, hmc, uri, uri_parms, logon_required):
              # pylint: disable=unused-argument
              """Operation: List Permitted Partitions."""
              uri, query_parms = parse_query_parms(method, uri)
              check_invalid_query_parms(
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.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

      Function post has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

          def post(method, hmc, uri, uri_parms, body, logon_required,
                   wait_for_completion):
              # pylint: disable=unused-argument
              """Operation: Remove Temporary Capacity."""
              assert wait_for_completion is True  # no async
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.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

      Function post has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
      Open

          def post(method, hmc, uri, uri_parms, body, logon_required,
                   wait_for_completion):
              # pylint: disable=unused-argument
              """Operation: Load Logical Partition (requires classic mode)."""
              assert wait_for_completion is True  # async not supported yet
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.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

      Function get has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def get(cls, method, hmc, uri, uri_parms, logon_required):
              # pylint: disable=unused-argument
              """Operation: List Adapters of a CPC (empty result if not in DPM
              mode)."""
              uri, query_parms = parse_query_parms(method, uri)
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 get has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def get(cls, method, hmc, uri, uri_parms, logon_required):
              # pylint: disable=unused-argument
              """Operation: List Partitions of a CPC (empty result if not in DPM
              mode)."""
              uri, query_parms = parse_query_parms(method, uri)
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 post has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def post(method, hmc, uri, uri_parms, body, logon_required,
                   wait_for_completion):
              # pylint: disable=unused-argument
              """Operation: Add Temporary Capacity."""
              assert wait_for_completion is True  # no async
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 get has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def get(cls, method, hmc, uri, uri_parms, logon_required):
              # pylint: disable=unused-argument
              """Operation: List Virtual Switches of a CPC (empty result if not in
              DPM mode)."""
              uri, query_parms = parse_query_parms(method, uri)
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 get has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def get(cls, method, hmc, uri, uri_parms, logon_required):
              # pylint: disable=unused-argument
              """
              Operation: List Image Activation Profiles.
              In case of DPM mode, an empty list is returned.
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 post has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

          def post(method, hmc, uri, uri_parms, body, logon_required,
                   wait_for_completion):
              # pylint: disable=unused-argument
              """Operation: Modify Storage Group Properties."""
              assert wait_for_completion is True  # async not supported yet
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 post has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def post(method, hmc, uri, uri_parms, body, logon_required,
                   wait_for_completion):
              # pylint: disable=unused-argument
              """Operation: Create NIC (requires DPM mode)."""
              assert wait_for_completion is True  # async not supported yet
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 post has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def post(method, hmc, uri, uri_parms, body, logon_required,
                   wait_for_completion):
              # pylint: disable=unused-argument
              """Operation: Create Storage Group."""
              assert wait_for_completion is True  # async not supported yet
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 post has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def post(method, hmc, uri, uri_parms, body, logon_required,
                   wait_for_completion):
              # pylint: disable=unused-argument
              """Operation: Create User."""
              assert wait_for_completion is True  # synchronous operation
      Severity: Minor
      Found in zhmcclient_mock/_urihandler.py - About 1 hr to fix

        Function parse_query_parms has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
        Open

        def parse_query_parms(method, uri):
            """
            Parse the specified URI with optional query parms and return the URI
            without query parms and a dictionary of query parms.
        
        
        Severity: Minor
        Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 post has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
        Open

            def post(method, hmc, uri, uri_parms, body, logon_required,
                     wait_for_completion):
                # pylint: disable=unused-argument
                """Operation: Decrease Crypto Configuration (requires DPM mode)."""
                assert wait_for_completion is True  # async not supported yet
        Severity: Minor
        Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 post has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
        Open

            def post(method, hmc, uri, uri_parms, body, logon_required,
                     wait_for_completion):
                # pylint: disable=unused-argument
                """Operation: Create Partition (requires DPM mode)."""
        
        
        Severity: Minor
        Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 get has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
        Open

            def get(cls, method, hmc, uri, uri_parms, logon_required):
                # pylint: disable=unused-argument
                """Operation: List Logical Partitions of CPC (empty result in DPM
                mode."""
                uri, query_parms = parse_query_parms(method, uri)
        Severity: Minor
        Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 get has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
        Open

            def get(cls, method, hmc, uri, uri_parms, logon_required):
                # pylint: disable=unused-argument
                """
                Operation: List Load Activation Profiles.
                In case of DPM mode, an empty list is returned.
        Severity: Minor
        Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 get has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
        Open

            def get(cls, method, hmc, uri, uri_parms, logon_required):
                # pylint: disable=unused-argument
                """
                Operation: List Reset Activation Profiles.
                In case of DPM mode, an empty list is returned.
        Severity: Minor
        Found in zhmcclient_mock/_urihandler.py - About 1 hr 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 post has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

            def post(method, hmc, uri, uri_parms, body, logon_required,
                     wait_for_completion):
                # pylint: disable=unused-argument
                """Operation: Create User."""
                assert wait_for_completion is True  # synchronous operation
        Severity: Minor
        Found in zhmcclient_mock/_urihandler.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 post has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def post(cls, method, hmc, uri, uri_parms, body, logon_required,
        Severity: Major
        Found in zhmcclient_mock/_urihandler.py - About 50 mins to fix

          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def post(method, hmc, uri, uri_parms, body, logon_required,
          Severity: Minor
          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def post(method, hmc, uri, uri_parms, body, logon_required,
            Severity: Minor
            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

              Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def post(method, hmc, uri, uri_parms, body, logon_required,
              Severity: Minor
              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def post(method, hmc, uri, uri_parms, body, logon_required,
                Severity: Minor
                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                  Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def post(method, hmc, uri, uri_parms, body, logon_required,
                  Severity: Minor
                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def post(method, hmc, uri, uri_parms, body, logon_required,
                    Severity: Minor
                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def post(method, hmc, uri, uri_parms, body, logon_required,
                      Severity: Minor
                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def post(method, hmc, uri, uri_parms, body, logon_required,
                        Severity: Minor
                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def post(method, hmc, uri, uri_parms, body, logon_required,
                          Severity: Minor
                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def post(method, hmc, uri, uri_parms, body, logon_required,
                            Severity: Minor
                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                              Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                              Severity: Minor
                              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                Severity: Minor
                                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                  Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                  Severity: Minor
                                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def post(method, hmc, uri, uri_parms, body, logon_required,
                                    Severity: Minor
                                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                      Severity: Minor
                                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def post(method, hmc, uri, uri_parms, body, logon_required,
                                        Severity: Minor
                                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                          Severity: Minor
                                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                            Open

                                                def post(method, hmc, uri, uri_parms, body, logon_required,
                                            Severity: Minor
                                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                              Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                              Open

                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                              Severity: Minor
                                              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                Open

                                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                                Severity: Minor
                                                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                  Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                                  Severity: Minor
                                                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                        def post(method, hmc, uri, uri_parms, body, logon_required,
                                                    Severity: Minor
                                                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                      Severity: Minor
                                                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            def post(method, hmc, uri, uri_parms, body, logon_required,
                                                        Severity: Minor
                                                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                          Open

                                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                                          Severity: Minor
                                                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                            Open

                                                                def post(method, hmc, uri, uri_parms, body, logon_required,
                                                            Severity: Minor
                                                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                              Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                              Open

                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                              Severity: Minor
                                                              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                Open

                                                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                Severity: Minor
                                                                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                  Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                  Severity: Minor
                                                                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                    Open

                                                                        def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                    Severity: Minor
                                                                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                      Open

                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                      Severity: Minor
                                                                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                        Open

                                                                            def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                        Severity: Minor
                                                                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                          Open

                                                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                          Severity: Minor
                                                                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                            Open

                                                                                def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                            Severity: Minor
                                                                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                              Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                              Open

                                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                              Severity: Minor
                                                                              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                Open

                                                                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                Severity: Minor
                                                                                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                  Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                  Open

                                                                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                  Severity: Minor
                                                                                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                    Open

                                                                                        def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                    Severity: Minor
                                                                                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                      Open

                                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                      Severity: Minor
                                                                                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                        Open

                                                                                            def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                        Severity: Minor
                                                                                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                          Function post has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                          Open

                                                                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                       wait_for_completion):
                                                                                                  # pylint: disable=unused-argument
                                                                                                  """Operation: Add Partition to Capacity Group."""
                                                                                                  assert wait_for_completion is True  # async not supported yet
                                                                                          Severity: Minor
                                                                                          Found in zhmcclient_mock/_urihandler.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 post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                          Open

                                                                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                          Severity: Minor
                                                                                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                            Open

                                                                                                def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                            Severity: Minor
                                                                                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                              Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                              Severity: Minor
                                                                                              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                Open

                                                                                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                Severity: Minor
                                                                                                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                  Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                  Severity: Minor
                                                                                                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                        def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                    Severity: Minor
                                                                                                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                      Open

                                                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                      Severity: Minor
                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                            def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                        Severity: Minor
                                                                                                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                          Severity: Minor
                                                                                                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                            Severity: Minor
                                                                                                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                              Function post has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                           wait_for_completion):
                                                                                                                      # pylint: disable=unused-argument
                                                                                                                      """Operation: Increase Crypto Configuration (requires DPM mode)."""
                                                                                                                      assert wait_for_completion is True  # async not supported yet
                                                                                                              Severity: Minor
                                                                                                              Found in zhmcclient_mock/_urihandler.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 post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                              Severity: Minor
                                                                                                              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                Severity: Minor
                                                                                                                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                  Function post has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                               wait_for_completion):
                                                                                                                          # pylint: disable=unused-argument
                                                                                                                          """Operation: Activate Logical Partition (requires classic mode)."""
                                                                                                                          assert wait_for_completion is True  # async not supported yet
                                                                                                                  Severity: Minor
                                                                                                                  Found in zhmcclient_mock/_urihandler.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 post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                  Severity: Minor
                                                                                                                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                        def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                    Severity: Minor
                                                                                                                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                      Severity: Minor
                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                            def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                        Severity: Minor
                                                                                                                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                          Severity: Minor
                                                                                                                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                            Severity: Minor
                                                                                                                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                              Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                              Severity: Minor
                                                                                                                              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                Severity: Minor
                                                                                                                                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                  Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                        def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                            def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                            Open

                                                                                                                                                def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                              Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                                Function post has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                Open

                                                                                                                                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                             wait_for_completion):
                                                                                                                                                        # pylint: disable=unused-argument
                                                                                                                                                        """Operation: Export WWPN List (requires DPM mode)."""
                                                                                                                                                        assert wait_for_completion is True  # this operation is always synchr.
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in zhmcclient_mock/_urihandler.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 post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                Open

                                                                                                                                                    def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                                  Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                      def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                                    Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                    Open

                                                                                                                                                        def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                                      Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                                        Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                                          Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                          Open

                                                                                                                                                              def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                                            Function post has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in zhmcclient_mock/_urihandler.py - About 45 mins to fix

                                                                                                                                                              Function post has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                              Open

                                                                                                                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                                           wait_for_completion):
                                                                                                                                                                      # pylint: disable=unused-argument
                                                                                                                                                                      """Operation: SCSI Load (requires classic mode)."""
                                                                                                                                                                      assert wait_for_completion is True  # async not supported yet
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in zhmcclient_mock/_urihandler.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 post has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                              Open

                                                                                                                                                                  def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                                           wait_for_completion):
                                                                                                                                                                      # pylint: disable=unused-argument
                                                                                                                                                                      """Operation: NVME Load (requires classic mode)."""
                                                                                                                                                                      assert wait_for_completion is True  # async not supported yet
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in zhmcclient_mock/_urihandler.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 get has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                              Open

                                                                                                                                                                  def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                def check_set_noninput(method, uri, properties, prop_name, prop_value):
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                      def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                  Severity: Minor
                                                                                                                                                                  Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                        def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                    Severity: Minor
                                                                                                                                                                    Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                      Severity: Minor
                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                            def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                              def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                          Severity: Minor
                                                                                                                                                                          Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                            def check_partition_status(method, uri, partition, valid_statuses=None,
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                  def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                              Severity: Minor
                                                                                                                                                                              Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                    def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                      def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                  Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                        def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                            def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                        Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                              def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                            Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                  def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                    def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                      def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                  Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                        def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                          def __init__(self, method, uri, http_status, reason, message):
                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                            def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                        Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                              def __init__(self, method, uri, handler_class=None, reason=1,
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                                def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                            Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                                  def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                                    def post(self, hmc, uri, body, logon_required, wait_for_completion):
                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                                      def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                  Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

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

                                                                                                                                                                                                                    def check_required_subfields(method, uri, element, element_str, field_names):
                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                    Found in zhmcclient_mock/_urihandler.py - About 35 mins to fix

                                                                                                                                                                                                                      Function get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List Storage Volumes of a Storage Group."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List User Patterns."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: Get <resource> Properties."""
                                                                                                                                                                                                                              # All URI patterns for Get Properties operations must have a last
                                                                                                                                                                                                                              # match group for the query parms.
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List Password Rules."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List Users."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List Capacity Groups (always global but with filters)."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List Unmanaged CPCs."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List LDAP Server Definitions."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 check_partition_status has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                      def check_partition_status(method, uri, partition, valid_statuses=None,
                                                                                                                                                                                                                                                 invalid_statuses=None):
                                                                                                                                                                                                                          """
                                                                                                                                                                                                                          Check that the partition is in one of the valid statuses (if specified)
                                                                                                                                                                                                                          and not in one of the invalid statuses (if specified), as indicated by its
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List User Roles."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List Tasks."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List Custom Groups."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 post has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                                                                                                   wait_for_completion):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: NVME Dump (requires classic mode)."""
                                                                                                                                                                                                                              assert wait_for_completion is True  # async not supported yet
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 post has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                                                                                                   wait_for_completion):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: SCSI Dump (requires classic mode)."""
                                                                                                                                                                                                                              assert wait_for_completion is True  # async not supported yet
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 35 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 get has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List Storage Groups (always global but with filters)."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 25 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 get has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def get(cls, method, hmc, uri, uri_parms, logon_required):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: List CPCs."""
                                                                                                                                                                                                                              uri, query_parms = parse_query_parms(method, uri)
                                                                                                                                                                                                                              check_invalid_query_parms(
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 25 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 post has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          def post(method, hmc, uri, uri_parms, body, logon_required,
                                                                                                                                                                                                                                   wait_for_completion):
                                                                                                                                                                                                                              # pylint: disable=unused-argument
                                                                                                                                                                                                                              """Operation: Change Adapter Type (requires DPM mode)."""
                                                                                                                                                                                                                              assert wait_for_completion is True  # HMC operation is synchronous
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py - About 25 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

                                                                                                                                                                                                                      Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              if hmc_version >= (2, 14, 1):
                                                                                                                                                                                                                                  wwpn = body.get('world-wide-port-name')
                                                                                                                                                                                                                                  lun = body.get('logical-unit-number')
                                                                                                                                                                                                                                  disk_partition_id = body.get('disk-partition-id', 0)
                                                                                                                                                                                                                                  os_load_parameters = body.get(
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 1 other location - About 1 day to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4830..4843

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 137.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              if hmc_version >= (2, 14, 1):
                                                                                                                                                                                                                                  wwpn = body.get('world-wide-port-name')
                                                                                                                                                                                                                                  lun = body.get('logical-unit-number')
                                                                                                                                                                                                                                  disk_partition_id = body.get('disk-partition-id', 0)
                                                                                                                                                                                                                                  os_load_parameters = body.get(
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 1 other location - About 1 day to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4736..4749

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 137.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              if hmc_version >= (2, 14, 1):
                                                                                                                                                                                                                                  disk_partition_id = body.get('disk-partition-id', 0)
                                                                                                                                                                                                                                  os_load_parameters = body.get(
                                                                                                                                                                                                                                      'operating-system-specific-load-parameters', '')
                                                                                                                                                                                                                                  boot_record_lba = body.get('boot-record-logical-block-address', '0')
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4921..4930

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 89.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              if hmc_version >= (2, 14, 1):
                                                                                                                                                                                                                                  disk_partition_id = body.get('disk-partition-id', 0)
                                                                                                                                                                                                                                  os_load_parameters = body.get(
                                                                                                                                                                                                                                      'operating-system-specific-load-parameters', '')
                                                                                                                                                                                                                                  boot_record_lba = body.get('boot-record-logical-block-address', '0')
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 5009..5018

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 89.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              if hmc_version >= (2, 14, 0):
                                                                                                                                                                                                                                  load_address = body.get('load-address')
                                                                                                                                                                                                                                  load_parameter = body.get('load-parameter', '')
                                                                                                                                                                                                                                  lpar.properties['last-used-load-address'] = load_address
                                                                                                                                                                                                                                  lpar.properties['last-used-load-parameter'] = load_parameter
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 3 other locations - About 2 hrs to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4730..4734
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4824..4828
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 5003..5007

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 63.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              if hmc_version >= (2, 14, 0):
                                                                                                                                                                                                                                  load_address = body.get('load-address')
                                                                                                                                                                                                                                  load_parameter = body.get('load-parameter', '')
                                                                                                                                                                                                                                  lpar.properties['last-used-load-address'] = load_address
                                                                                                                                                                                                                                  lpar.properties['last-used-load-parameter'] = load_parameter
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 3 other locations - About 2 hrs to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4824..4828
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4915..4919
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 5003..5007

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 63.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              if hmc_version >= (2, 14, 0):
                                                                                                                                                                                                                                  load_address = body.get('load-address')
                                                                                                                                                                                                                                  load_parameter = body.get('load-parameter', '')
                                                                                                                                                                                                                                  lpar.properties['last-used-load-address'] = load_address
                                                                                                                                                                                                                                  lpar.properties['last-used-load-parameter'] = load_parameter
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 3 other locations - About 2 hrs to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4730..4734
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4915..4919
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 5003..5007

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 63.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              if hmc_version >= (2, 14, 0):
                                                                                                                                                                                                                                  load_address = body.get('load-address')
                                                                                                                                                                                                                                  load_parameter = body.get('load-parameter', '')
                                                                                                                                                                                                                                  lpar.properties['last-used-load-address'] = load_address
                                                                                                                                                                                                                                  lpar.properties['last-used-load-parameter'] = load_parameter
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 3 other locations - About 2 hrs to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4730..4734
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4824..4828
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 4915..4919

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 63.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                      if filter_args and 'cpc-name' in filter_args:
                                                                                                                                                                                                                                          if not re.match(filter_args['cpc-name'], cpc.name):
                                                                                                                                                                                                                                              continue
                                                                                                                                                                                                                                          del filter_args['cpc-name']
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 912..915

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 48.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                      if filter_args and 'cpc-name' in filter_args:
                                                                                                                                                                                                                                          if not re.match(filter_args['cpc-name'], cpc.name):
                                                                                                                                                                                                                                              continue
                                                                                                                                                                                                                                          del filter_args['cpc-name']
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in zhmcclient_mock/_urihandler.py and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                      zhmcclient_mock/_urihandler.py on lines 863..866

                                                                                                                                                                                                                      Duplicated Code

                                                                                                                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                      This issue has a mass of 48.

                                                                                                                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                      Further Reading

                                                                                                                                                                                                                      There are no issues that match your filters.

                                                                                                                                                                                                                      Category
                                                                                                                                                                                                                      Status