Showing 229 of 406 total issues
Function __bindEvents
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__bindEvents : function()
{
var that = this;
// reflow handling
`` has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
{
/*
======================================================
PARENT CONNECTION
======================================================
Function __showContent
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__showContent: function(data, doToggle) {
if (data.file) {
var content = document.getElementById('content'),
Function __runNextSuite
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
__runNextSuite : function()
{
var previousSuite = this.__suites[this.__currentIndex];
var currentSuite = this.__suites[++this.__currentIndex];
- 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 scrollX
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scrollX : function(element, align)
{
var parent = element.parentNode;
var doc = element.ownerDocument;
var body = doc.body;
Function scrollY
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scrollY : function(element, align)
{
var parent = element.parentNode;
var doc = element.ownerDocument;
var body = doc.body;
File Test.js
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
==================================================================================================
Core - JavaScript Foundation
Copyright 2012-2014 Sebastian Werner
==================================================================================================
Function get
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var get = function (value) {
var results, any, key;
if (value == "$") {
// Unexpected end of input.
abort();
Function dispatchEvent
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dispatchEvent : function(eventObject)
{
var eventType = eventObject.getType();
var eventTarget = this;
Function start
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root)
{
var start = time();
var lastFrame = start;
var percent = 0;
Function build
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
build : function(elems, context, scripts)
{
if (context == null) {
context = document;
}
Function resetter
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var resetter = function(modifyPriority)
{
return function(value)
{
var context = this;
Function construct
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
construct : function(suites)
{
var root = document.getElementById("reporter");
if (!root)
{
Function serialize
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var serialize = function (property, object, callback, properties, whitespace, indentation, stack)
{
var value = object[property], className, date, results, element, index, length, prefix, any, result;
if ((typeof value == "object" || typeof value == "function") && value)
{
Function doTouchEnd
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
doTouchEnd: function(timeStamp) {
if (timeStamp instanceof Date) {
timeStamp = timeStamp.valueOf();
}
File Array.js
has 254 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
==================================================================================================
Core - JavaScript Foundation
Copyright 2012-2014 Sebastian Werner
==================================================================================================
Function scrollX
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
Open
scrollX : function(element, align)
{
var parent = element.parentNode;
var doc = element.ownerDocument;
var body = doc.body;
- 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 walk
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walk(node, labels, nostrip)
{
var code = '';
for (var i=0, l=node.length; i<l; i++)
Function setter
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var setter = function(modifyPriority)
{
return function(newValue)
{
var context = this;
Function fadeOut
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fadeOut : function(elem, to, reset, callback, context)
{
// Already running
if (elem.fading == "out") {
return;