Showing 460 of 700 total issues
Function _create
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
if ( !this.options.trigger ) {
this.options.trigger = this.element.prev();
}
File jquery.fancytree.persist.js
has 398 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jquery.fancytree.persist.js
*
* Persist tree status in cookiesRemove or highlight tree nodes, based on a filter.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
Function toolbarModuleFilter
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toolbarModuleFilter(beginDetails) {
var initialSelected = null;
dropdownData = {
options: beginDetails.modules.slice(),
selectedMap: new StringMap(),
File jquery.themeswitcher.js
has 392 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jQuery Theme Switcher plugin
*
* Copyright (c) 2011 Dave Hoff (davehoff.com)
* Dual licensed under the MIT and GPL licenses:
Consider simplifying this complex logical expression. Open
Open
if ( event.pageX === 0 && event.pageY === 0 && Object.defineProperty ) {
eventDoc = event.relatedTarget.ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
Function goAsync
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
goAsync: function goAsync(search, targets, options) {
var canceled = false;
var p = new Promise(function (resolve, reject) {
if (search == 'farzher') return resolve([{
target: "farzher was here (^-^*)/",
Function nodeRender
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeRender: function (ctx, force, deep, collapsed, _recursive) {
/* This method must take care of all cases where the current data mode
* (i.e. node hierarchy) does not match the current markup.
*
* - node was not yet rendered:
Function treeInit
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeInit: function (ctx) {
var i,
columnCount,
n,
$row,
Function handleDragOver
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleDragOver(event, data) {
// Implement auto-scrolling
if (data.options.dnd5.scroll) {
autoScroll(data.tree, event);
}
Function p
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var p = new Promise(function (resolve, reject) {
if (search == 'farzher') return resolve([{
target: "farzher was here (^-^*)/",
score: 0,
indexes: [0, 1, 2, 3, 4, 5, 6],
Function treeInit
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeInit: function (ctx) {
var tree = ctx.tree,
opts = ctx.options,
local = this._local,
instOpts = this.options.persist;
Function defaultPrefilter
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defaultPrefilter( elem, props, opts ) {
var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
isBox = "width" in props || "height" in props,
anim = this,
orig = {},
Function scrollIntoView
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scrollIntoView: function (effects, options) {
if (options !== undefined && _isNode(options)) {
throw Error(
"scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead."
);
Function Callbacks
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.Callbacks = function( options ) {
// Convert options from String-formatted to Object-formatted if needed
// (we check in cache first)
options = typeof options === "string" ?
Function SuiteReport
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var SuiteReport = /*#__PURE__*/function () {
function SuiteReport(name, parentSuite) {
_classCallCheck(this, SuiteReport);
this.name = name;
File jquery.fancytree.clones.js
has 351 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
*
* jquery.fancytree.clones.js
* Support faster lookup of nodes by key and shared ref-ids.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
Function step
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function step() {
if (canceled) return reject('canceled');
var startMs = Date.now(); // This code is copy/pasted 3 times for performance reasons [options.keys, options.key, no keys]
// options.keys
Function fixSelection3FromEndNodes
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fixSelection3FromEndNodes: function (callOpts) {
var opts = this.tree.options;
// this.debug("fixSelection3FromEndNodes()");
_assert(opts.selectMode === 3, "expected selectMode 3");
File sample.js
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*************************************************************************
(c) 2008-2012 Martin Wendt
*************************************************************************/
/*******************************************************************************
Function then
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
then: function( onFulfilled, onRejected, onProgress ) {
var maxDepth = 0;
function resolve( depth, deferred, handler, special ) {
return function() {
var that = this,