Showing 593 of 1,093 total issues
Function ipmiCatalogJobFactory
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ipmiCatalogJobFactory(
BaseJob,
parser,
waterline,
Logger,
Function LocalCatalogJobFactory
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function LocalCatalogJobFactory(
BaseJob,
parser,
waterline,
Logger,
Function DellWsmanConfigureRedfishAlertFactory
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DellWsmanConfigureRedfishAlertFactory(
BaseJob,
WsmanTool,
Logger,
Promise,
Function run
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DockerJob.prototype._run = function run() {
var self = this;
return waterline.nodes.needByIdentifier(self.nodeId)
.then(function (node) {
Function _calculateSineticaPowerData
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SnmpPduPowerMetric.prototype._calculateSineticaPowerData = function(powerData) {
var out = {};
var unitsMap = {
'pduOutName': 'null',
'pduOutOn': 'null',
Function racadmFactory
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
Open
function racadmFactory(
Promise,
parser,
ChildProcess,
assert,
- 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 diagUpdateFirmwareFactory
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function diagUpdateFirmwareFactory(
BaseJob,
DiagTool,
Logger,
util,
Function collectIpmiSelEntries
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
IpmiJob.prototype.collectIpmiSelEntries = function(data) {
var self = this;
var lastPreviouslyReadSelEntry;
var lastSelDeleteTimeCurrent, lastSelDeleteTimeLastRun;
var totalEntries;
Function RedfishIpRangeDiscoveryJobFactory
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function RedfishIpRangeDiscoveryJobFactory(
BaseJob,
Logger,
Promise,
assert,
Function DellWsmanBiosJobFactory
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DellWsmanBiosJobFactory(
BaseJob,
Logger,
Promise,
assert,
Function replacer
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
GeneralRedfishCatalogJob.prototype.replacer = function(nodeId, odataId, res) {
var self = this;
var catalogString = JSON.stringify(res.body);
var odataIdString = odataId;
Function WsmanAddHotspareUpdateXmlFactory
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WsmanAddHotspareUpdateXmlFactory(
BaseJob,
Logger,
assert,
util,
Function BaseObmServiceFactory
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BaseObmServiceFactory (assert, Promise, _, Logger, ChildProcess) {
var logger = Logger.initialize(BaseObmServiceFactory);
/**
*
Function dockerReconcilerJobFactory
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dockerReconcilerJobFactory(
BaseJob,
waterline,
messenger,
Logger,
Function panduitObmServiceFactory
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function panduitObmServiceFactory(
Promise,
BaseObmService,
_,
assert,
Function validationJobFactory
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validationJobFactory(
BaseJob,
util,
Logger,
assert,
Function generateSkuJobFactory
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateSkuJobFactory(
BaseJob,
waterline,
eventsProtocol,
catalogSearch,
Function updateXml
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
WsmanAddVolumeXmlJob.prototype.updateXml = function(data, drives, raidLevel, name, stripeSize, writePolicy){
var self = this;
var xmlFile = String.fromCharCode.apply(null, new Uint16Array(data));
var doc = new xmldom().parseFromString(xmlFile, 'application/xml');
var components = doc.getElementsByTagName('Component');
File snmp-job.js
has 342 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright 2015, EMC, Inc.
'use strict';
var di = require('di');
File racadm-tool.js
has 342 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright 2016, EMC, Inc.
'use strict';
var di = require('di');