RackHD/on-tasks

View on GitHub

Showing 593 of 1,093 total issues

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

    BaseMetric,
    assert,
    util,
    Promise,
    _
Severity: Minor
Found in lib/utils/metrics/snmp-processor-load.js - About 35 mins to fix

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

        BaseMetric,
        assert,
        util,
        Promise,
        _
    Severity: Minor
    Found in lib/utils/metrics/snmp-memory-usage.js - About 35 mins to fix

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

          PanduitObmService.prototype._runInternal = function (command, host, community, file, retries) {
      Severity: Minor
      Found in lib/services/panduit-obm-service.js - About 35 mins to fix

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

        function vmrunObmServiceFactory(Promise, BaseObmService, util, _, fs) {
        Severity: Minor
        Found in lib/services/vmrun-obm-service.js - About 35 mins to fix

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

              RacadmTool.prototype._configBiosAttr = function(host, user, password, reboot, cmd) {
          Severity: Minor
          Found in lib/utils/job-utils/racadm-tool.js - About 35 mins to fix

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

                BaseMetric,
                Promise,
                util,
                assert,
                _
            Severity: Minor
            Found in lib/utils/metrics/snmp-interface-bandwidth-utilization.js - About 35 mins to fix

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

              function BaseObmServiceFactory (assert, Promise, _, Logger, ChildProcess) {
              Severity: Minor
              Found in lib/services/base-obm-service.js - About 35 mins to fix

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

                    RacadmTool.prototype.getBiosConfig = function(host, user, password, config, device) {
                Severity: Minor
                Found in lib/utils/job-utils/racadm-tool.js - About 35 mins to fix

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

                      Promise,
                      BaseObmService,
                      _,
                      assert,
                      util
                  Severity: Minor
                  Found in lib/services/panduit-obm-service.js - About 35 mins to fix

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

                    function EmcComposeSystemJobFactory(
                        BaseJob,
                        Logger,
                        Promise,
                        assert,
                    Severity: Minor
                    Found in lib/jobs/emc-compose-system.js - 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 ipmiCatalogJobFactory has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function ipmiCatalogJobFactory(
                        BaseJob,
                        parser,
                        waterline,
                        Logger,
                    Severity: Minor
                    Found in lib/jobs/ipmi-catalog.js - 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 DellWsmanConfigureRedfishAlertFactory has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function DellWsmanConfigureRedfishAlertFactory(
                        BaseJob,
                        WsmanTool,
                        Logger,
                        Promise,
                    Severity: Minor
                    Found in lib/jobs/dell-wsman-configure-redfish-alert.js - 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 DellWsmanConfigJobFactory has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function DellWsmanConfigJobFactory(
                        BaseJob,
                        WsmanTool,
                        Logger,
                        Promise,
                    Severity: Minor
                    Found in lib/jobs/dell-wsman-config.js - 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 runWorkItemsJobFactory has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function runWorkItemsJobFactory(
                        BaseJob,
                        waterline,
                        Logger,
                        util,
                    Severity: Minor
                    Found in lib/jobs/run-work-items.js - 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 apcObmServiceFactory has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function apcObmServiceFactory(Promise, BaseObmService, _) {
                        function ApcObmService(options) {
                            BaseObmService.call(this, options);
                            this.requiredKeys = ['community', 'host', 'port'];
                            this.mibCommand = 'PowerNet-MIB::sPDUOutletCtl';
                    Severity: Minor
                    Found in lib/services/apc-obm-service.js - 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 parseSnmpDataFactory has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function parseSnmpDataFactory(_) {
                        /**
                         * Parse a line of output from SNMP data
                         * @param line
                         * @returns {{value: *, oid: *}}
                    Severity: Minor
                    Found in lib/utils/job-utils/net-snmp-parser.js - 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 ansibleFactory has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function ansibleFactory(assert, ChildProcess) {
                        /**
                         * @constructor
                         */
                        function AnsibleTool() {
                    Severity: Minor
                    Found in lib/utils/job-utils/ansible.js - 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

                    Avoid too many return statements within this function.
                    Open

                                    return self.createIpmiBySourceType(nodes, pollerTemplate, sourceQuery, 'SNMP');
                    Severity: Major
                    Found in lib/jobs/create-default-pollers.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                          return self.PollJobStatus(response.body[0].jobId, timeout, interval)
                                              .then(function(jobStatus) {
                                                  if(jobStatus === 'Completed') {
                                                      return self.PollJobStatus(response.body[1].jobId, timeout, interval);
                                                  } else {
                      Severity: Major
                      Found in lib/jobs/dell-wsman-simple-update-firmware.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                            return 'unknown';
                        Severity: Major
                        Found in lib/utils/metrics/base-metric.js - About 30 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language