Showing 460 of 700 total issues
Function done
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function done( status, nativeStatusText, responses, headers ) {
var isSuccess, success, error, response, modified,
statusText = nativeStatusText;
// Ignore repeat invocations
Function diffCleanupSemantic
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DiffMatchPatch.prototype.diffCleanupSemantic = function (diffs) {
var changes, equalities, equalitiesLength, lastequality, pointer, lengthInsertions2, lengthDeletions2, lengthInsertions1, lengthDeletions1, deletion, insertion, overlapLength1, overlapLength2;
changes = false;
equalities = []; // Stack of indices where equalities are found.
Function nodeRender
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeRender: function (ctx, force, deep, collapsed, _recursive) {
var children,
i,
l,
outsideViewport,
Function setMatcher
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
if ( postFilter && !postFilter[ expando ] ) {
postFilter = setMatcher( postFilter );
}
if ( postFinder && !postFinder[ expando ] ) {
Function treeInit
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeInit: function (ctx) {
var $temp,
tree = ctx.tree,
opts = ctx.options,
glyph = opts.glyph || null,
Function _create
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
this.tree = new Fancytree(this);
this.$source =
this.source || this.element.data("type") === "json"
Function resolve
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolve( depth, deferred, handler, special ) {
return function() {
var that = this,
args = arguments,
mightThrow = function() {
Function FancytreeNode
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FancytreeNode(parent, obj) {
var i, l, name, cl;
this.parent = parent;
this.tree = parent.tree;
Function algorithmNoTypo
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
algorithmNoTypo: function algorithmNoTypo(searchLowerCodes, prepared, searchLowerCode) {
var targetLowerCodes = prepared._targetLowerCodes;
var searchLen = searchLowerCodes.length;
var targetLen = targetLowerCodes.length;
var searchI = 0; // where we at
Function findRelatedNode
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
findRelatedNode: function (node, where, includeHidden) {
var res = null,
KC = $.ui.keyCode;
switch (where) {
Function treeSetOption
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeSetOption: function (ctx, key, value) {
var tree = ctx.tree,
callDefault = true,
callCreate = false,
callRender = false;
Function nodeRenderStatus
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeRenderStatus: function (ctx) {
var checkbox,
icon,
res,
span,
Function treeRegisterNode
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
treeRegisterNode: function (ctx, add, node) {
var refList,
len,
tree = ctx.tree,
keyMap = tree.keyMap,
Function hashMurmur3
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hashMurmur3(key, asString, seed) {
/*eslint-disable no-bitwise */
var h1b,
k1,
remainder = key.length & 3,
Consider simplifying this complex logical expression. Open
Open
if ( forward && useCache ) {
// Seek `elem` from a previously-cached index
// ...in a gzip-friendly way
Function superMatcher
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
superMatcher = function( seed, context, xml, results, outermost ) {
var elem, j, matcher,
matchedCount = 0,
i = "0",
unmatched = seed && [],
File jquery.fancytree.glyph.js
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jquery.fancytree.glyph.js
*
* Use glyph-fonts, ligature-fonts, or SVG icons instead of icon sprites.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
Function Fancytree
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Fancytree(widget) {
this.widget = widget;
this.$div = widget.element;
this.options = widget.options;
if (this.options) {
Function visitRows
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
visitRows: function (fn, opts) {
if (!this.rootNode.hasChildren()) {
return false;
}
if (opts && opts.reverse) {
Function editEnd
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.fancytree._FancytreeNodeClass.prototype.editEnd = function (
applyChanges,
_event
) {
var newVal,