zhmcclient/python-zhmcclient

View on GitHub

Showing 303 of 334 total issues

Function nvme_dump has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    def nvme_dump(self, load_address, load_parameter=None,
                  secure_boot=False, disk_partition_id=None,
                  operating_system_specific_load_parameters=None,
                  boot_record_logical_block_address=None, force=False,
                  wait_for_completion=True, operation_timeout=None,
Severity: Minor
Found in zhmcclient/_lpar.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 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def post(self, uri, resource=None, body=None, logon_required=True,
    Severity: Major
    Found in zhmcclient_mock/_session.py - About 50 mins to fix

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

          def post(self, uri, resource=None, body=None, logon_required=True,
      Severity: Major
      Found in zhmcclient/_session.py - About 50 mins to fix

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

            def __init__(
        Severity: Major
        Found in zhmcclient/_cpc.py - About 50 mins to fix

          Function set_stp_config has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def set_stp_config(
          Severity: Major
          Found in zhmcclient/_cpc.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
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language