adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

Function _mouseDown has 37 lines of code (exceeds 25 allowed). Consider refactoring.
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

        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;
    Severity: Minor
    Found in src/extensions/default/CodeFolding/foldhelpers/foldgutter.js - About 1 hr to fix

      Function v1 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function v1(options, buf, offset) {
          var i = buf && offset || 0;
          var b = buf || [];
      
          options = options || {};
      Severity: Minor
      Found in src/extensions/default/HealthData/thirdparty/uuid.js - About 1 hr to fix

        Function expectParameterHint has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        function expectParameterHint(expectedParams, expectedParameter) {
                            var requestHints = undefined,
                                request = null;
        
                            function expectHint(hint) {
        Severity: Minor
        Found in src/extensions/default/JavaScriptQuickEdit/unittests.js - About 1 hr to fix

          Function normalizeGradientExpressionForQuickview has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function normalizeGradientExpressionForQuickview(expression) {
                      if (expression.indexOf("px") > 0) {
                          var paramStart = expression.indexOf("(") + 1,
                              paramEnd = expression.lastIndexOf(")"),
                              parameters = expression.substring(paramStart, paramEnd),
          Severity: Minor
          Found in src/extensions/default/QuickView/main.js - About 1 hr to fix

            Function bezierCurveMatch has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            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

                  function prepareEditorForProvider(hostEditor, pos) {
                      var cursorLine, sel, startPos, endPos, startBookmark, endBookmark, currentMatch,
                          cm = hostEditor._codeMirror;
              
                      sel = hostEditor.getSelection();
              Severity: Minor
              Found in src/extensions/default/InlineTimingFunctionEditor/main.js - About 1 hr to fix

                Function statusValidFn has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            var statusValidFn = function () {
                
                                // Restart button click handler
                                var restartBtnClicked = function () {
                                    HealthLogger.sendAnalyticsData(
                Severity: Minor
                Found in src/extensions/default/AutoUpdate/main.js - About 1 hr to fix

                  Function _size has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                  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

                    $.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

                      $.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

                        $.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

                                  function jsonObject() {
                                      var o = {}, t = nexttoken;
                                      advance('{');
                                      if (nexttoken.id !== '}') {
                                          for (;;) {

                            Function watch has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            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;
                            Severity: Minor
                            Found in src/filesystem/FileSystem.js - About 1 hr to fix

                              Function checkDoc has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function checkDoc(doc) {
                                          var result = new $.Deferred();
                              
                                          // Check file timestamp / existence
                              
                              
                              Severity: Minor
                              Found in src/project/FileSyncManager.js - About 1 hr to fix

                                Function fileOpened has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function fileOpened(filePath, addedToWorkingSet, encoding) {
                                        if (!shouldLogHealthData()) {
                                            return;
                                        }
                                        var fileExtension = FileUtils.getFileExtension(filePath),
                                Severity: Minor
                                Found in src/utils/HealthLogger.js - About 1 hr to fix

                                  Function _loadAndSetMode has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                  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"]
                                  
                                  
                                  Severity: Minor
                                  Found in src/language/LanguageManager.js - About 1 hr to fix

                                    Function _getImportUrlInfo has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _getImportUrlInfo(ctx, editor) {
                                            var backwardPos = $.extend({}, ctx.pos),
                                                forwardPos  = $.extend({}, ctx.pos),
                                                backwardCtx,
                                                forwardCtx,
                                    Severity: Minor
                                    Found in src/language/CSSUtils.js - About 1 hr to fix

                                      Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function ajaxHandleResponses( s, jqXHR, responses ) {
                                      
                                          var ct, type, finalDataType, firstDataType,
                                              contents = s.contents,
                                              dataTypes = s.dataTypes;
                                      Severity: Minor
                                      Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                        Function takeWhileFactory has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        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);
                                        Severity: Minor
                                        Found in src/thirdparty/immutable.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language