Showing 460 of 700 total issues
Function mightThrow
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mightThrow = function() {
var returned, then;
// Support: Promises/A+ section 2.3.3.3.3
// https://promisesaplus.com/#point-59
Function _adjustColWidths
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_adjustColWidths: function () {
if (this.options.fixed.adjustColWidths) {
this.options.fixed.adjustColWidths.call(this);
return;
}
Function boxModelAdjustment
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
var i = dimension === "width" ? 1 : 0,
extra = 0,
delta = 0;
Function throws
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function throws(block, expected, message) {
var _validateExpectedExce = validateExpectedExceptionArgs(expected, message, 'throws');
var _validateExpectedExce2 = _slicedToArray(_validateExpectedExce, 2);
Function init
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function(options) {
var opts = $.extend({}, defaultOptions, options),
hrefs = [],
$link = null,
initialChoice = undefined;
Function createModule
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createModule(name, testEnvironment, modifiers) {
var parentModule = moduleStack.length ? moduleStack.slice(-1)[0] : null;
var moduleName = parentModule !== null ? [parentModule.name, name].join(' > ') : name;
var parentSuite = parentModule ? parentModule.suiteReport : runSuite;
var skip = parentModule !== null && parentModule.skip || modifiers.skip;
Function handler
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleObj.handler = function(event) {
// Don't fire in text-accepting inputs that we didn't directly bind to
if (this !== event.target && (/textarea|select/i.test(event.target.nodeName) ||
(jQuery.hotkeys.options.filterTextInputs &&
jQuery.inArray(event.target.type, jQuery.hotkeys.textAcceptingInputTypes) > -1))) {
Function getWidthOrHeight
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getWidthOrHeight( elem, dimension, extra ) {
// Start with computed style
var styles = getStyles( elem ),
Function _adjustWrapperLayout
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_adjustWrapperLayout: function () {
var $wrapper = this.$fixedWrapper,
fcn = this.options.fixed.classNames,
$topLeftWrapper = $wrapper.find("div." + fcn.topLeft),
$topRightWrapper = $wrapper.find("div." + fcn.topRight),
Function diffCompute
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DiffMatchPatch.prototype.diffCompute = function (text1, text2, checklines, deadline) {
var diffs, longtext, shorttext, i, hm, text1A, text2A, text1B, text2B, midCommon, diffsA, diffsB;
if (!text1) {
// Just add some text (speedup).
Function highlightCallback
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
highlightCallback: function highlightCallback(result, cb) {
if (result === null) return null;
var target = result.target;
var targetLen = target.length;
var indexes = result.indexes;
Function _openMenu
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_openMenu: function (ctx) {
var data,
tree = ctx.tree,
opts = ctx.options,
$menu = $(opts.menu.selector);
Function _visitRowsUp
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_visitRowsUp: function (fn, opts) {
var children,
idx,
parent,
includeHidden = !!opts.includeHidden,
Function top
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.offset.top + within.scrollTop,
outerHeight = within.height,
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
Function _simpleDeepMerge
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _simpleDeepMerge() {
var options,
name,
src,
copy,
Function _subclassObject
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _subclassObject(tree, base, extension, extName) {
// $.ui.fancytree.debug("_subclassObject", tree, base, extension, extName);
for (var attrName in extension) {
if (typeof extension[attrName] === "function") {
if (typeof tree[attrName] === "function") {
Function top
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.offset.top + within.scrollTop,
outerHeight = within.height,
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
Function setOffset
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
position = jQuery.css( elem, "position" ),
curElem = jQuery( elem ),
props = {};
Function top
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.offset.top + within.scrollTop,
outerHeight = within.height,
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
Function handlers
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handlers: function( event, handlers ) {
var i, handleObj, sel, matchedHandlers, matchedSelectors,
handlerQueue = [],
delegateCount = handlers.delegateCount,
cur = event.target;