Showing 593 of 1,093 total issues
Avoid too many return
statements within this function. Open
return Promise.resolve({ data: parsed, source: bmcsource, store: store });
Avoid too many return
statements within this function. Open
return Promise.resolve({ source: bmcsource, error: e });
Avoid too many return
statements within this function. Open
return Promise.resolve({ source: userSummarySource, error: e });
Avoid too many return
statements within this function. Open
return Promise.resolve({source: userListSource, error: e});
Avoid too many return
statements within this function. Open
return Promise.resolve({
source: data.source,
data: { data: data.stdout },
store: true
});
Function diagUpdateFirmwareFactory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function diagUpdateFirmwareFactory(
BaseJob,
DiagTool,
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 createDockerAPI
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function createDockerAPI(docker, logger) {
return {
attach: function(id, opts, cb) { docker.getContainer(id).attach(opts, cb); },
create: function(opts, cb) { docker.createContainer(opts, cb); },
inspect: function(id, opts, cb) { docker.getContainer(id).inspect(opts, cb); },
- 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 LocalCatalogJobFactory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function LocalCatalogJobFactory(
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 wsmanJobFactory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function wsmanJobFactory(
BaseJob,
Logger,
util,
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 RedfishObmServiceFactory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function RedfishObmServiceFactory(
BaseObmService,
Promise,
waterline,
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 snmpProcessorLoadMetricFactory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function snmpProcessorLoadMetricFactory(
BaseMetric,
assert,
util,
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 snmpPduPowerMetricFactory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function snmpPduPowerMetricFactory(
BaseMetric,
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 amtObmServiceFactory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function amtObmServiceFactory(Promise, BaseObmService, _) {
function AmtObmService(options) {
BaseObmService.call(this, options);
this.requiredKeys = ['host', 'password'];
}
- 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"