adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    each: function( obj, callback, args ) {
        var value,
            i = 0,
            length = obj.length,
            isArray = isArraylike( obj );
Severity: Minor
Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

      Function showDialog has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          QuickNavigateDialog.prototype.showDialog = function (prefix, initialString) {
              if (this.isOpen) {
                  return;
              }
              this.isOpen = true;
      Severity: Minor
      Found in src/search/QuickOpen.js - About 1 hr to fix

        Function doJumpToDef has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            JumpToDefProvider.prototype.doJumpToDef = function () {
                if (!this.client) {
                    return null;
                }
        
        
        Severity: Minor
        Found in src/languageTools/DefaultProviders.js - About 1 hr to fix

          Function _addSearchResultsForEntries has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function _addSearchResultsForEntries(entries) {
                      var fullPaths = [];
                      return Async.doInParallel(entries, function (entry) {
                          var addedFiles = [],
                              addedFilePaths = [],
          Severity: Minor
          Found in src/search/FindInFiles.js - About 1 hr to fix

            Function serverRespToSearchModelFormat has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function serverRespToSearchModelFormat(msgObj) {
                    var referenceModel = {},
                        result = $.Deferred();
            
                    if(!(msgObj && msgObj.length && msgObj.cursorPos)) {
            Severity: Minor
            Found in src/languageTools/DefaultProviders.js - About 1 hr to fix

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

                  function _updateHintList(callMoveUpEvent) {
              
                      callMoveUpEvent = typeof callMoveUpEvent === "undefined" ? false : callMoveUpEvent;
              
                      if (deferredHints) {
              Severity: Minor
              Found in src/editor/CodeHintManager.js - About 1 hr to fix

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

                function handleFunctionType(fileInfo, offset) {
                    var request = buildRequest(fileInfo, "type", offset),
                        error;
                
                    request.query.preferFunction = true;
                Severity: Minor
                Found in src/JSUtils/node/TernNodeDomain.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/JavaScriptCodeHints/unittests.js - About 1 hr to fix

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

                                      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 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 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 _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 _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 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,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language