Showing 1,485 of 3,294 total issues
Function each
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
each: function( object, callback, args ) {
var name, i = 0,
length = object.length,
isObj = length === undefined || jQuery.isFunction( object );
Function push
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
push: function( result, actual, expected, message ) {
if ( !config.current ) {
throw new Error( "assertion outside test context, was " + sourceFromStacktrace() );
}
Function closest
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
closest: function( selectors, context ) {
var ret = [], i, l, cur = this[0];
// Array (deprecated as of jQuery 1.7)
if ( jQuery.isArray( selectors ) ) {
Function set
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function (id, value, options, doNotSave) {
options = options || {};
var context = this._getContext(options.context),
// The case where the "default" scope was chosen specifically is special.
Function _parseAtRule
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _parseAtRule(level) {
// reset these fields to ignore comments preceding @rules
ruleStartLine = -1;
ruleStartChar = -1;
Function mapFactory
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapFactory(iterable, mapper, context) {
var mappedSequence = makeSequence(iterable);
mappedSequence.size = iterable.size;
mappedSequence.has = function(key ) {return iterable.has(key)};
mappedSequence.get = function(key, notSetValue) {
Function show
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show: function() {
/***** [changed for Brackets: moved some variables to updatePosition()] *****/
var $tip
, that = this;
/***** [/changed for Brackets] *****/
Function _filterCallback
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
QuickNavigateDialog.prototype._filterCallback = function (query) {
// Re-evaluate which plugin is active each time query string changes
currentPlugin = null;
// "Go to line" mode is special-cased
Function openSearchBar
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function openSearchBar(editor, replace) {
var cm = editor._codeMirror,
state = getSearchState(cm);
// Use the selection start as the searchStartPos. This way if you
Function show
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
InstallExtensionDialog.prototype.show = function (urlToInstall) {
if (this._state !== STATE_CLOSED) {
// Somehow the dialog got invoked twice. Just ignore this.
return this._dialogDeferred.promise();
}
Function install
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function install(path, nameHint, _doUpdate) {
return _extensionManagerCall(function (extensionManager) {
var d = new $.Deferred(),
destinationDirectory = ExtensionLoader.getUserExtensionPath(),
disabledDirectory = destinationDirectory.replace(/\/user$/, "/disabled"),
Function _updateDatepicker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateDatepicker: function(inst) {
this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
var borders = $.datepicker._getBorders(inst.dpDiv);
instActive = inst; // for delegate hover events
inst.dpDiv.empty().append(this._generateHTML(inst));
Function hasHtmlHints
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UrlCodeHints.prototype.hasHtmlHints = function (editor, implicitChar) {
var tagInfo,
query,
tokenType;
Function _destroy
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
var contents;
// clean up main element
this.element
Function _normalizeArguments
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _normalizeArguments( effect, options, speed, callback ) {
// allow passing all optinos as the first parameter
if ( $.isPlainObject( effect ) ) {
options = effect;
Function left
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.offset.left + within.scrollLeft,
outerWidth = within.width,
offsetLeft = within.isWindow ? 0 : within.offset.left,
Function ATTR
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ATTR: function( elem, match ) {
var name = match[1],
result = Sizzle.attr ?
Sizzle.attr( elem, name ) :
Expr.attrHandle[ name ] ?
Function setOffset
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var position = jQuery.css( elem, "position" );
// set position first, in-case top/left are set even on static elem
if ( position === "static" ) {
Function componentDidUpdate
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidUpdate: function () {
if (!this.props.visible) {
return;
}
Function waitForAll
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function waitForAll(promises, failOnReject, timeout) {
var masterDeferred = new $.Deferred(),
results = [],
count = 0,
sawRejects = false;