adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function _handleExtensionLoad has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _handleExtensionLoad(e, path) {
        function setData(metadata) {
            var locationType,
                id = metadata.name,
                userExtensionPath = ExtensionLoader.getUserExtensionPath();
Severity: Minor
Found in src/extensibility/ExtensionManager.js - About 1 hr to fix

    Function open has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function open(restart) {
            // If close() is still pending, wait for close to finish before opening
            if (_isPromisePending(_closeDeferred)) {
                return _closeDeferred.then(function () {
                    return open(restart);
    Severity: Minor
    Found in src/LiveDevelopment/LiveDevelopment.js - About 1 hr to fix

      Function _createMROFDisplayList has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _createMROFDisplayList(refresh) {
              var $def = $.Deferred();
              
              var $mrofList, $link, $newItem;
      
      
      Severity: Minor
      Found in src/extensions/default/NavigationAndHistory/main.js - About 1 hr to fix

        Function moveView has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            Pane.prototype.moveView = function (file, destinationPane, destinationIndex) {
                var self = this,
                    openNextPromise = new $.Deferred(),
                    result = new $.Deferred();
        
        
        Severity: Minor
        Found in src/view/Pane.js - About 1 hr to fix

          Function select has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          select = Sizzle.select = function( selector, context, results, seed ) {
              var i, tokens, token, type, find,
                  compiled = typeof selector === "function" && selector,
                  match = !seed && tokenize( (selector = compiled.selector || selector) );
          
          
          Severity: Minor
          Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

            Function validateNotificationParams has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function validateNotificationParams(type, params) {
                    var validatedParams = null;
            
                    params = params || {};
            
            
            Severity: Minor
            Found in src/languageTools/LanguageClientWrapper.js - About 1 hr to fix

              Function getHints has 47 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function load has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    MultiRangeInlineEditor.prototype.load = function (hostEditor) {
                        MultiRangeInlineEditor.prototype.parentClass.load.apply(this, arguments);
                
                        // Create the message area
                        this.$messageDiv = $("<div/>")
                Severity: Minor
                Found in src/editor/MultiRangeInlineEditor.js - About 1 hr to fix

                  Function _getRelativeMenuItem has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      Menu.prototype._getRelativeMenuItem = function (relativeID, position) {
                          var $relativeElement;
                  
                          if (relativeID) {
                              if (position === FIRST_IN_SECTION || position === LAST_IN_SECTION) {
                  Severity: Minor
                  Found in src/command/Menus.js - About 1 hr to fix

                    Function validateChecksum has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function validateChecksum(requester, params) {
                            params = params || {
                                filePath: installerPath,
                                expectedChecksum: _updateParams.checksum
                            };
                    Severity: Minor
                    Found in src/extensions/default/AutoUpdate/node/AutoUpdateDomain.js - About 1 hr to fix

                      Function drag has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          drag: function(event, ui) {
                      
                              var inst = $(this).data("draggable"), that = this;
                      
                              var checkPos = function(o) {

                        Function toHaveInlineEditorRange has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                            toHaveInlineEditorRange: function (range) {
                                                var i = 0,
                                                    editor = this.actual,
                                                    hidden,
                                                    lineCount = editor.lineCount(),
                        Severity: Minor
                        Found in src/extensions/default/JavaScriptQuickEdit/unittests.js - About 1 hr to fix

                          Function fold has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          $.effects.effect.fold = function( o, done ) {
                          
                              // Create element
                              var el = $( this ),
                                  props = [ "position", "top", "bottom", "left", "right", "height", "width" ],

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

                            function ajaxHandleResponses( s, jqXHR, responses ) {
                            
                                var contents = s.contents,
                                    dataTypes = s.dataTypes,
                                    responseFields = s.responseFields,

                              Function extract has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function extract(scopes, parentStatement, expns, text, insertPosition) {
                                      var varType          = "var",
                                          varName          = RefactoringUtils.getUniqueIdentifierName(scopes, "extracted"),
                                          varDeclaration   = varType + " " + varName + " = " + text + ";\n",
                                          parentStatementStartPos = session.editor.posFromIndex(parentStatement.start),
                              Severity: Minor
                              Found in src/extensions/default/JavaScriptRefactoring/ExtractToVariable.js - About 1 hr to fix

                                Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                                    var matched, match, tokens, type,
                                        soFar, groups, preFilters,
                                        cached = tokenCache[ selector + " " ];
                                
                                
                                Severity: Minor
                                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                  Function matcherFromTokens has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function matcherFromTokens( tokens ) {
                                      var checkContext, matcher, j,
                                          len = tokens.length,
                                          leadingRelative = Expr.relative[ tokens[0].type ],
                                          implicitRelative = leadingRelative || Expr.relative[" "],
                                  Severity: Minor
                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                    Function deepEqual has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function deepEqual(a, b) {
                                        if (a === b) {
                                          return true;
                                        }
                                    
                                    
                                    Severity: Minor
                                    Found in src/thirdparty/immutable.js - About 1 hr to fix

                                      Function _keydownHook has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var _keydownHook = function (e, autoDismiss) {
                                              var $primaryBtn     = this.find(".primary"),
                                                  buttonId        = null,
                                                  which           = String.fromCharCode(e.which),
                                                  $focusedElement = this.find(".dialog-button:focus, a:focus");
                                      Severity: Minor
                                      Found in src/widgets/Dialogs.js - About 1 hr to fix

                                        Function addMenu has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function addMenu(name, id, position, relativeID) {
                                                name = _.escape(name);
                                                var $menubar = $("#titlebar .nav"),
                                                    menu;
                                        
                                        
                                        Severity: Minor
                                        Found in src/command/Menus.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language