Showing 593 of 1,093 total issues
Function snmpPduPowerMetricFactory
has 254 lines of code (exceeds 25 allowed). Consider refactoring. Open
function snmpPduPowerMetricFactory(
BaseMetric,
assert,
util,
_,
File base-job.js
has 574 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright 2015, EMC, Inc.
'use strict';
var di = require('di');
Function WsmanSimpleFirmwareUpdateJobFactory
has 241 lines of code (exceeds 25 allowed). Consider refactoring. Open
function WsmanSimpleFirmwareUpdateJobFactory(
BaseJob,
WsmanTool,
Logger,
util,
Function snmpJobFactory
has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring. Open
function snmpJobFactory(
BaseJob,
SnmpTool,
Constants,
Logger,
- 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 searchCatalogDataFactory
has 227 lines of code (exceeds 25 allowed). Consider refactoring. Open
function searchCatalogDataFactory(
assert,
_,
waterline,
Promise
Function secureEraseJobFactory
has 220 lines of code (exceeds 25 allowed). Consider refactoring. Open
function secureEraseJobFactory(
BaseJob,
Logger,
Promise,
assert,
Function EmcComposeSystemJobFactory
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
function EmcComposeSystemJobFactory(
BaseJob,
Logger,
Promise,
assert,
Function diagToolFactory
has 216 lines of code (exceeds 25 allowed). Consider refactoring. Open
function diagToolFactory(Promise, _, Logger, assert) {
function DiagToolFactory(settings, nodeId) {
assert.isIP(settings.host, 4);
this.server = "%s://%s:%s".format(
Function runWorkItemsJobFactory
has 209 lines of code (exceeds 25 allowed). Consider refactoring. Open
function runWorkItemsJobFactory(
BaseJob,
waterline,
Logger,
util,
Function baseJobFactory
has a Cognitive Complexity of 53 (exceeds 5 allowed). Consider refactoring. Open
function baseJobFactory(
eventsProtocol,
taskProtocol,
encryption,
lookup,
- 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 parseSensorsDataFactory
has 204 lines of code (exceeds 25 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) {
File task-graph.js
has 506 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright 2016, EMC, Inc.
'use strict';
var di = require('di');
Function installOsJobFactory
has 199 lines of code (exceeds 25 allowed). Consider refactoring. Open
function installOsJobFactory(
BaseJob,
Logger,
assert,
util,
File task.js
has 494 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright 2015, EMC, Inc.
'use strict';
var di = require('di');
Function commandUtilFactory
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
function commandUtilFactory(
parser,
Logger,
assert,
Promise,
Function DellWsmanPostDiscoveryJobFactory
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
function DellWsmanPostDiscoveryJobFactory(
BaseJob,
Logger,
Promise,
assert,
File redfish-job.js
has 469 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright 2016, EMC, Inc.
'use strict';
var di = require('di'),
Function parseRacadmDataFactory
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
function parseRacadmDataFactory(
assert,
_,
fs,
Promise
Function UcsDiscoveryJobFactory
has 178 lines of code (exceeds 25 allowed). Consider refactoring. Open
function UcsDiscoveryJobFactory(
BaseJob,
Logger,
Promise,
assert,
Function taskGraphFactory
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
function taskGraphFactory(
taskLibrary,
Task,
store,
taskMessenger,
- 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"