Showing 460 of 700 total issues
Function keyEvent
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keyEvent: function( type, options ) {
var event;
options = $.extend({
bubbles: true,
cancelable: true,
Function prettyYamlValue
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prettyYamlValue(value) {
var indent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 4;
if (value === undefined) {
// Not supported in JSON/YAML, turn into string
Function _log
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_log: function(args) {
var $this = $(this),
data = $this.data("jsconsole"),
level = arguments[0],
levelName = LEVEL_NAMES[level],
Function StringMap
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var StringMap = typeof g.Map === 'function' && typeof g.Map.prototype.keys === 'function' && typeof g.Symbol === 'function' && _typeof(g.Symbol.iterator) === 'symbol' ? g.Map : function StringMap(input) {
var _this = this;
var store = Object.create(null);
var hasOwn = Object.prototype.hasOwnProperty;
Function autoScroll
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function autoScroll(tree, event) {
var spOfs,
scrollTop,
delta,
dndOpts = tree.options.dnd5,
Function rejects
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function rejects(promise, expected, message) {
var _validateExpectedExce3 = validateExpectedExceptionArgs(expected, message, 'rejects');
var _validateExpectedExce4 = _slicedToArray(_validateExpectedExce3, 2);
Function _afterExpand
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _afterExpand(ok, args) {
// ctx.tree.info("ok:" + ok, args);
if (ok) {
// #1108 minExpandLevel: 2 together with table extension does not work
// don't call when 'ok' is false:
Function _on
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_on: function( suppressDisabledCheck, element, handlers ) {
var delegateElement;
var instance = this;
// No suppressDisabledCheck flag, shuffle arguments
Function _on
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_on: function( suppressDisabledCheck, element, handlers ) {
var delegateElement;
var instance = this;
// No suppressDisabledCheck flag, shuffle arguments
Function _on
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_on: function( suppressDisabledCheck, element, handlers ) {
var delegateElement;
var instance = this;
// No suppressDisabledCheck flag, shuffle arguments
Function valid
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
valid: function valid() {
// Internally-generated tests are always valid
if (this.callback && this.callback.validTest) {
return true;
}
Function allSettled
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function allSettled(arr) {
var P = this;
return new P(function (resolve, reject) {
if (!(arr && typeof arr.length !== 'undefined')) {
return reject(new TypeError(_typeof(arr) + ' ' + arr + ' is not iterable(cannot read property Symbol(Symbol.iterator))'));
Function onIframeLoad
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onIframeLoad() {
var moduleName,
testName,
count = 0;
Function _afterExpand
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _afterExpand(ok) {
tree.redrawViewport(true);
if (ok) {
if (
Function nodeRender
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeRender: function (ctx, force, deep, collapsed, _recursive) {
var res = this._superApply(arguments),
node = ctx.node,
isRootNode = !node.parent;
Function ajaxHandleResponses
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxHandleResponses( s, jqXHR, responses ) {
var ct, type, finalDataType, firstDataType,
contents = s.contents,
dataTypes = s.dataTypes;
Function nodeClick
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeClick: function (ctx) {
var //pluginOpts = ctx.options.multi,
tree = ctx.tree,
node = ctx.node,
activeNode = tree.getActiveNode() || tree.getFirstChild(),
Function getUrlConfigHtml
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getUrlConfigHtml() {
var selection = false;
var urlConfig = config.urlConfig;
var urlConfigHtml = '';
Function nodeRenderTitle
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
nodeRenderTitle: function (ctx, title) {
var $cb,
res,
tree = ctx.tree,
node = ctx.node,
Function applyPatch
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
applyPatch: function (patch) {
// patch [key, null] means 'remove'
if (patch === null) {
this.remove();
return _getResolvedPromise(this);