RackHD/on-tasks

View on GitHub

Showing 593 of 1,093 total issues

Function switchRelationsJobFactory has 173 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function switchRelationsJobFactory(
    BaseJob,
    waterline,
    catalogSearch,
    Logger,
Severity: Major
Found in lib/jobs/switch-node-relations.js - About 6 hrs to fix

    Function WsmanAddVolumeXmlFactory has 166 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function WsmanAddVolumeXmlFactory(
        BaseJob,
        Logger,
        assert,
        util,
    Severity: Major
    Found in lib/jobs/dell-wsman-add-volume-updateXml.js - About 6 hrs to fix

      Function UcsCatalogJobFactory has 164 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function UcsCatalogJobFactory(
          BaseJob,
          Logger,
          Promise,
          assert,
      Severity: Major
      Found in lib/jobs/ucs-catalog.js - About 6 hrs to fix

        Function generateEnclosureJobFactory has 154 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function generateEnclosureJobFactory(
            BaseJob,
            waterline,
            catalogSearch,
            Logger,
        Severity: Major
        Found in lib/jobs/generate-enclosure.js - About 6 hrs to fix

          Function pollerMessageCacheJobFactory has 144 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function pollerMessageCacheJobFactory(
              BaseJob,
              configuration,
              Logger,
              util,
          Severity: Major
          Found in lib/jobs/message-cache-job.js - About 5 hrs to fix

            Function RedfishObmServiceFactory has 143 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function RedfishObmServiceFactory(
                BaseObmService, 
                Promise, 
                waterline,
                assert,
            Severity: Major
            Found in lib/services/redfish-obm-service.js - About 5 hrs to fix

              Function installOsJobFactory has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
              Open

              function installOsJobFactory(
                  BaseJob,
                  Logger,
                  assert,
                  util,
              Severity: Minor
              Found in lib/jobs/install-os.js - About 5 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 waitSelEventJobFactory has 137 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function waitSelEventJobFactory(
                  BaseJob,
                  Logger,
                  util,
                  assert,
              Severity: Major
              Found in lib/jobs/wait-sel-events-job.js - About 5 hrs to fix

                File general-redfish-catalog.js has 387 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                //Copyright 2017, Dell EMC, Inc.
                'use strict';
                
                var di = require('di');
                var request = require('requestretry');
                Severity: Minor
                Found in lib/jobs/general-redfish-catalog.js - About 5 hrs to fix

                  Function createDefaultPollersJobFactory has 132 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function createDefaultPollersJobFactory(
                      BaseJob,
                      waterline,
                      Logger,
                      util,
                  Severity: Major
                  Found in lib/jobs/create-default-pollers.js - About 5 hrs to fix

                    Function parseSensorsDataFactory has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function parseSensorsDataFactory(assert, _) {
                        //UID status code, 0 = Off, 1 = Temporary On , 2 = On, 3 = reserved
                        var uidStatus = ['Off', 'Temporary On', 'On', 'Reserved'];
                    
                        function parseSelInformationData(selData) {
                    Severity: Minor
                    Found in lib/utils/job-utils/ipmi-parser.js - About 5 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 pduRelationsJobFactory has 131 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function pduRelationsJobFactory(
                        BaseJob,
                        waterline,
                        Logger,
                        util,
                    Severity: Major
                    Found in lib/jobs/pdu-node-relations.js - About 5 hrs to fix

                      Function dockerJobFactory has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function dockerJobFactory(
                          BaseJob,
                          util,
                          Logger,
                          assert,
                      Severity: Major
                      Found in lib/jobs/docker-job.js - About 5 hrs to fix

                        Function WsmanAddVolumeXmlFactory has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
                        Open

                        function WsmanAddVolumeXmlFactory(
                            BaseJob,
                            Logger,
                            assert,
                            util,
                        Severity: Minor
                        Found in lib/jobs/dell-wsman-add-volume-updateXml.js - About 5 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 DellWsmanInventoryJobFactory has 127 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function DellWsmanInventoryJobFactory(
                            BaseJob,
                            Logger,
                            Promise,
                            util,
                        Severity: Major
                        Found in lib/jobs/dell-wsman-inventory.js - About 5 hrs to fix

                          Function ipmiSdrPollerAlertJobFactory has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function ipmiSdrPollerAlertJobFactory(
                              PollerAlertJob,
                              Logger,
                              util,
                              assert,
                          Severity: Major
                          Found in lib/jobs/ipmi-sdr-alert-job.js - About 5 hrs to fix

                            Function ucsJobFactory has 125 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function ucsJobFactory(
                                UcsBaseJob,
                                Logger,
                                util,
                                Promise,
                            Severity: Major
                            Found in lib/jobs/ucs-job.js - About 5 hrs to fix

                              Function UcsServiceProfileDiscoveryJobFactory has 124 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function UcsServiceProfileDiscoveryJobFactory(
                                  BaseJob,
                                  Logger,
                                  Promise,
                                  assert,
                              Severity: Major
                              Found in lib/jobs/ucs-service-profile-discovery.js - About 4 hrs to fix

                                File emc-redfish-catalog.js has 373 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                
                                // Copyright 2016, EMC, Inc.
                                
                                'use strict';
                                
                                
                                Severity: Minor
                                Found in lib/jobs/emc-redfish-catalog.js - About 4 hrs to fix

                                  Function wsmanFirmwareUpdateJobFactory has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function wsmanFirmwareUpdateJobFactory(
                                      BaseJob,
                                      WsmanTool,
                                      Logger,
                                      util,
                                  Severity: Major
                                  Found in lib/jobs/dell-wsman-firmware-update-job.js - About 4 hrs to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language