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,
Function WsmanAddVolumeXmlFactory
has 166 lines of code (exceeds 25 allowed). Consider refactoring. Open
function WsmanAddVolumeXmlFactory(
BaseJob,
Logger,
assert,
util,
Function UcsCatalogJobFactory
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
function UcsCatalogJobFactory(
BaseJob,
Logger,
Promise,
assert,
Function generateEnclosureJobFactory
has 154 lines of code (exceeds 25 allowed). Consider refactoring. Open
function generateEnclosureJobFactory(
BaseJob,
waterline,
catalogSearch,
Logger,
Function pollerMessageCacheJobFactory
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
function pollerMessageCacheJobFactory(
BaseJob,
configuration,
Logger,
util,
Function RedfishObmServiceFactory
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
function RedfishObmServiceFactory(
BaseObmService,
Promise,
waterline,
assert,
Function installOsJobFactory
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
function installOsJobFactory(
BaseJob,
Logger,
assert,
util,
- Read upRead up
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,
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');
Function createDefaultPollersJobFactory
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
function createDefaultPollersJobFactory(
BaseJob,
waterline,
Logger,
util,
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) {
- Read upRead up
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,
Function dockerJobFactory
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
function dockerJobFactory(
BaseJob,
util,
Logger,
assert,
Function WsmanAddVolumeXmlFactory
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
function WsmanAddVolumeXmlFactory(
BaseJob,
Logger,
assert,
util,
- Read upRead up
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,
Function ipmiSdrPollerAlertJobFactory
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
function ipmiSdrPollerAlertJobFactory(
PollerAlertJob,
Logger,
util,
assert,
Function ucsJobFactory
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
function ucsJobFactory(
UcsBaseJob,
Logger,
util,
Promise,
Function UcsServiceProfileDiscoveryJobFactory
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
function UcsServiceProfileDiscoveryJobFactory(
BaseJob,
Logger,
Promise,
assert,
File emc-redfish-catalog.js
has 373 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright 2016, EMC, Inc.
'use strict';
Function wsmanFirmwareUpdateJobFactory
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
function wsmanFirmwareUpdateJobFactory(
BaseJob,
WsmanTool,
Logger,
util,