Showing 3,294 of 3,294 total issues
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 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 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 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 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 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 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 _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 drop
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.drop = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
Function slide
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.slide = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
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,
Function jsonObject
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function jsonObject() {
var o = {}, t = nexttoken;
advance('{');
if (nexttoken.id !== '}') {
for (;;) {
Function watch
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileSystem.prototype.watch = function (entry, filter, filterGlobs, callback) {
// make filterGlobs an optional argument to stay backwards compatible
if (typeof callback === "undefined" && typeof filterGlobs === "function") {
callback = filterGlobs;
filterGlobs = null;
Function checkDoc
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function checkDoc(doc) {
var result = new $.Deferred();
// Check file timestamp / existence
Function fileOpened
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fileOpened(filePath, addedToWorkingSet, encoding) {
if (!shouldLogHealthData()) {
return;
}
var fileExtension = FileUtils.getFileExtension(filePath),
Function _loadAndSetMode
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Language.prototype._loadAndSetMode = function (mode) {
var result = new $.Deferred(),
self = this,
mimeMode; // Mode can be an array specifying a mode plus a MIME mode defined by that mode ["clike", "text/x-c++src"]
Function _getImportUrlInfo
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getImportUrlInfo(ctx, editor) {
var backwardPos = $.extend({}, ctx.pos),
forwardPos = $.extend({}, ctx.pos),
backwardCtx,
forwardCtx,
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 takeWhileFactory
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function takeWhileFactory(iterable, predicate, context) {
var takeSequence = makeSequence(iterable);
takeSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
if (reverse) {
return this.cacheResult().__iterate(fn, reverse);