Showing 229 of 406 total issues
Function remove
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
remove : function(target, type, callback, context, capture)
Function set
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
var set = function(element, x, y, z, zoom)
Function remove
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
remove : function(target, type, callback, context, capture)
Function test
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def test(target="source", tool="phantom", browsers=None, main="test.Main", kernel="test.Kernel"):
Function preloadSection
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
preloadSection: function(section, recursive, callback, context, random)
Function load
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
load : function(uris, callback, context, nocache, type)
Function load
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
load : function(uri, callback, context, nocache, timeout)
Function construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
construct : function(title, func, suite, total, timeout)
Function createChild
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
createChild : function(name, construct, varargs)
{
var args = arguments;
if (args.length > 2)
- 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 forEachView
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
forEachView : function(callback, context, all)
{
var db = this.__views;
var view;
- 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 createModel
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
createModel : function(name, construct, varargs)
{
var args = arguments;
if (args.length > 2)
- 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 testFinished
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
testFinished : function(test)
{
var li = document.getElementById("test-" + test.getId());
core.bom.ClassName.remove(li, "running");
- 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 run
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
run : function(allDoneCallback, testStartedCallback, testFinishedCallback, randomize)
{
var queue = this.__tests;
var length = queue.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 buildHash
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
buildHash: function(type, file, item) {
type = type || null;
file = file || null;
item = item || null;
- 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 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;
Avoid too many return
statements within this function. Open
return "jump";
Avoid too many return
statements within this function. Open
return "equal";
Avoid too many return
statements within this function. Open
return "param";