Showing 481 of 922 total issues
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
return;
Avoid too many return
statements within this function. Open
return result;
Avoid too many return
statements within this function. Open
return tmp.getFieldType(parts.join("."));
Avoid too many return
statements within this method. Open
return 'array';
Avoid too many return
statements within this method. Open
return $this->em->getExpressionBuilder()->like($alias, $paramName);
Avoid too many return
statements within this function. Open
return ret;
Avoid too many return
statements within this method. Open
return null;
Avoid too many return
statements within this method. Open
return $this->em->getExpressionBuilder()->lte($alias, $paramName);
Avoid too many return
statements within this method. Open
return 'boolean';
Avoid too many return
statements within this method. Open
return 'number';
Avoid too many return
statements within this function. Open
return ret;
Avoid too many return
statements within this method. Open
return 'number';
Avoid too many return
statements within this method. Open
return 'undefined';
Avoid too many return
statements within this method. Open
return $this->em->getExpressionBuilder()->neq($alias, $paramName);
Function applySizing
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
applySizing: function (id, config) {
var info = this.getSizing(id),
keys = ['width', 'height', 'x', 'y'],
len = keys.length,
- 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 onParameterSelect
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
onParameterSelect: function (combo, value)
{
var prefixes, j, unitFilter = [];
this.valueType = value.get("valueType");
- 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 validateExecuteBatchJobButton
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
validateExecuteBatchJobButton: function ()
{
var valid = true, i;
var batchJobQueryFields = this.batchJob.batchJobQueryFields();
- 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 _onItemSave
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
_onItemSave: function ()
{
// Disable the save button to indicate progress
if (this.enableButtons) {
this.saveButton.disable();
- 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 createFormConfig
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
createFormConfig: function (renderer)
{
var configIterator, config, field, fields = [], useDescriptionElemement;
for (configIterator in renderer.rendererConfigs)
- 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"