Showing 593 of 1,093 total issues
Function snmpProcessorLoadMetricFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
BaseMetric,
assert,
util,
Promise,
_
Function snmpMemoryUsageMetricFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
BaseMetric,
assert,
util,
Promise,
_
Function _runInternal
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
PanduitObmService.prototype._runInternal = function (command, host, community, file, retries) {
Function vmrunObmServiceFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function vmrunObmServiceFactory(Promise, BaseObmService, util, _, fs) {
Function _configBiosAttr
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
RacadmTool.prototype._configBiosAttr = function(host, user, password, reboot, cmd) {
Function snmpInterfaceBandwidthUtilizationMetricFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
BaseMetric,
Promise,
util,
assert,
_
Function BaseObmServiceFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function BaseObmServiceFactory (assert, Promise, _, Logger, ChildProcess) {
Function getBiosConfig
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
RacadmTool.prototype.getBiosConfig = function(host, user, password, config, device) {
Function panduitObmServiceFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Promise,
BaseObmService,
_,
assert,
util
Function EmcComposeSystemJobFactory
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function EmcComposeSystemJobFactory(
BaseJob,
Logger,
Promise,
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 ipmiCatalogJobFactory
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function ipmiCatalogJobFactory(
BaseJob,
parser,
waterline,
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 DellWsmanConfigureRedfishAlertFactory
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function DellWsmanConfigureRedfishAlertFactory(
BaseJob,
WsmanTool,
Logger,
Promise,
- 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 DellWsmanConfigJobFactory
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function DellWsmanConfigJobFactory(
BaseJob,
WsmanTool,
Logger,
Promise,
- 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 runWorkItemsJobFactory
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function runWorkItemsJobFactory(
BaseJob,
waterline,
Logger,
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 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';
- 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 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: *}}
- 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 ansibleFactory
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function ansibleFactory(assert, ChildProcess) {
/**
* @constructor
*/
function AnsibleTool() {
- 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
Avoid too many return
statements within this function. Open
return self.createIpmiBySourceType(nodes, pollerTemplate, sourceQuery, 'SNMP');
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 {
Avoid too many return
statements within this function. Open
return 'unknown';