Showing 1,485 of 3,294 total issues
Function each
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
each: function( obj, callback, args ) {
var value,
i = 0,
length = obj.length,
isArray = isArraylike( obj );
Function update
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BitmapIndexedNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
if (keyHash === undefined) {
keyHash = hash(key);
}
var keyHashFrag = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
Function showDialog
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
QuickNavigateDialog.prototype.showDialog = function (prefix, initialString) {
if (this.isOpen) {
return;
}
this.isOpen = true;
Function doJumpToDef
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
JumpToDefProvider.prototype.doJumpToDef = function () {
if (!this.client) {
return null;
}
Function _addSearchResultsForEntries
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _addSearchResultsForEntries(entries) {
var fullPaths = [];
return Async.doInParallel(entries, function (entry) {
var addedFiles = [],
addedFilePaths = [],
Function serverRespToSearchModelFormat
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function serverRespToSearchModelFormat(msgObj) {
var referenceModel = {},
result = $.Deferred();
if(!(msgObj && msgObj.length && msgObj.cursorPos)) {
Function _updateHintList
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _updateHintList(callMoveUpEvent) {
callMoveUpEvent = typeof callMoveUpEvent === "undefined" ? false : callMoveUpEvent;
if (deferredHints) {
Function handleFunctionType
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleFunctionType(fileInfo, offset) {
var request = buildRequest(fileInfo, "type", offset),
error;
request.query.preferFunction = true;
Function expectParameterHint
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function expectParameterHint(expectedParams, expectedParameter) {
var requestHints = undefined,
request = null;
function expectHint(hint) {
Function updateFoldsCache
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateFoldsCache(cm, from, linesDiff) {
var oldRange, newRange;
var minFoldSize = prefs.getSetting("minFoldSize") || 2;
var foldedLines = Object.keys(cm._lineFolds).map(function (d) {
return +d;
Function statusValidFn
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var statusValidFn = function () {
// Restart button click handler
var restartBtnClicked = function () {
HealthLogger.sendAnalyticsData(
Function v1
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function v1(options, buf, offset) {
var i = buf && offset || 0;
var b = buf || [];
options = options || {};
Function expectParameterHint
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function expectParameterHint(expectedParams, expectedParameter) {
var requestHints = undefined,
request = null;
function expectHint(hint) {
Function drag
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(event, ui) {
var inst = $(this).data("draggable"), o = inst.options;
var d = o.snapTolerance;
Function normalizeGradientExpressionForQuickview
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function normalizeGradientExpressionForQuickview(expression) {
if (expression.indexOf("px") > 0) {
var paramStart = expression.indexOf("(") + 1,
paramEnd = expression.lastIndexOf(")"),
parameters = expression.substring(paramStart, paramEnd),
Function prepareEditorForProvider
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareEditorForProvider(hostEditor, pos) {
var cursorLine, sel, startPos, endPos, startBookmark, endBookmark, currentMatch,
cm = hostEditor._codeMirror;
sel = hostEditor.getSelection();
Function bezierCurveMatch
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bezierCurveMatch(str, lax) {
var match;
// First look for any cubic-bezier().
match = str.match(BEZIER_CURVE_VALID_REGEX);
Function _mouseDown
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseDown: function(event) {
// don't let more than one widget handle mouseStart
if( mouseHandled ) { return; }
// we may have missed mouseup (out of window)
Function _size
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_size: function() {
/* If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
* divs will both have width and height set, so we need to reset them
*/
var nonContentHeight, minContentHeight, autoHeight,
Function intersect
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.intersect = function(draggable, droppable, toleranceMode) {
if (!droppable.offset) return false;
var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,