Showing 460 of 700 total issues
Function eventToString
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
eventToString: function (event) {
// Poor-man's hotkeys. See here for a complete implementation:
// https://github.com/jeresig/jquery.hotkeys
var which = event.which,
et = event.type,
Function renderLevelCss
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderLevelCss(
containerId,
depth,
levelOfs,
lineOfs,
Function remove
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( owner, key ) {
var i,
cache = owner[ this.expando ];
if ( cache === undefined ) {
Function run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
run: function run() {
config.current = this;
if (config.notrycatch) {
runTest(this);
Function decycledShallowClone
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function decycledShallowClone(object) {
var ancestors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
if (ancestors.indexOf(object) !== -1) {
return '[Circular]';
Function _checkBrowser
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _checkBrowser(){
var matched, browser;
function uaMatch( ua ) {
ua = ua.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
Consider simplifying this complex logical expression. Open
Open
if (
hitMode !== "before" &&
hitMode !== "after" &&
dnd.autoExpandMS &&
node.hasChildren() !== false &&
Consider simplifying this complex logical expression. Open
Open
if ( support.matchesSelector && documentIsHTML &&
!nonnativeSelectorCache[ expr + " " ] &&
( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
Consider simplifying this complex logical expression. Open
Open
if (lastequality && (preIns && preDel && postIns && postDel || lastequality.length < 2 && preIns + preDel + postIns + postDel === 3)) {
// Duplicate record.
diffs.splice(equalities[equalitiesLength - 1], 0, [DIFF_DELETE, lastequality]); // Change second copy to insert.
diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;
Function access
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
Avoid deeply nested control flow statements. Open
Open
if (target === copy) {
continue;
}
Avoid deeply nested control flow statements. Open
Open
if (copy && $.isPlainObject(copy)) {
clone = src && $.isPlainObject(src) ? src : {};
// Never move original objects, clone them
target[name] = _simpleDeepMerge(clone, copy);
// Don't bring in undefined values
Avoid deeply nested control flow statements. Open
Open
if (res !== false) {
dict.children.push(res);
}
Function _onDragEvent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
eventName,
node,
otherNode,
event,
ui,
Avoid deeply nested control flow statements. Open
Open
if (
node.selected === undefined ||
(instOpts.overrideSource &&
node.selected === false)
) {
Avoid deeply nested control flow statements. Open
Open
if (
len === 2 &&
ctx.options.clones.highlightClones
) {
// node.debug("clones.treeRegisterNode: last =>", node.getCloneList());
Function on
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function on( elem, types, selector, data, fn, one ) {
Function init
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
init: function( elem, options, prop, end, easing, unit ) {
Function boxModelAdjustment
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
Function setMatcher
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {