Showing 229 of 406 total issues
Avoid too many return
statements within this function. Open
return "$";
Avoid too many return
statements within this function. Open
return null;
Avoid too many return
statements within this function. Open
return context[currentGetter](name);
Avoid too many return
statements within this function. Open
return data[propertyId+currentPriority];
Avoid too many return
statements within this function. Open
return false;
Function times
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
times : function(func, context, number)
{
if (jasy.Env.isSet("debug"))
{
core.Assert.isType(func, "Function");
- 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 parseHash
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
parseHash: function(hash) {
var regex = new RegExp("((source|static|member|property|event)\:)?([A-Za-z0-9_\.]+)?(\~([A-Za-z0-9_]+))");
var tmp = unescape(hash).split(regex);
- 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 __failed
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
__failed : function(message, ex)
{
var combined = message || "";
if (ex && combined != ex.message)
{
- 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 contains
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
contains: function(parent, child)
{
if (parent.nodeType == 9) {
return child.ownerDocument === parent;
} else if (parent.contains) {
- 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"