adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

Function _doInspectorDisconnect has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _doInspectorDisconnect(doCloseWindow) {
        var closePromise,
            deferred    = new $.Deferred(),
            connected   = Inspector.connected();

Severity: Minor
Found in src/LiveDevelopment/LiveDevelopment.js - About 1 hr to fix

    Function handleDownloadFailure has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function handleDownloadFailure(message) {
            console.log("AutoUpdate : Download of latest installer failed in Attempt " +
                (MAX_DOWNLOAD_ATTEMPTS - downloadAttemptsRemaining) + ".\n Reason : " + message);
    
            if (downloadAttemptsRemaining) {
    Severity: Minor
    Found in src/extensions/default/AutoUpdate/main.js - About 1 hr to fix

      Function queryInlineAtPos has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function queryInlineAtPos(info, offset, expectInline, expectedProperty) {
                  var widget = null,
                      promise;
      
                  runs(function () {
      Severity: Minor
      Found in src/extensions/default/MDNDocs/unittests.js - About 1 hr to fix

        Function keydownHook has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function keydownHook(event) {
                var keyHandled = false;
        
                switch (event.keyCode) {
                case KeyEvent.DOM_VK_UP:
        Severity: Minor
        Found in src/extensions/default/RecentProjects/main.js - About 1 hr to fix

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

              drag: function(event, ui) {
          
                  var i = $(this).data("draggable"), o = i.options, scrolled = false;
          
                  if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {

            Function init has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function init() {
                    _isInitialized = true;
            
                    foldCode.init();
                    foldGutter.init();
            Severity: Minor
            Found in src/extensions/default/CodeFolding/main.js - About 1 hr to fix

              Function createList has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function createList(list, isDocumentSymbolRequest) {
                      var newlist = [];
                      for (var i = 0; i < list.length; i++) {
                          var symbolInfo = list[i],
                              label = symbolInfo.name,
              Severity: Minor
              Found in src/extensions/default/PhpTooling/PHPSymbolProviders.js - About 1 hr to fix

                Function _determineButtonType has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _determineButtonType: function() {
                        var ancestor, labelSelector, checked;
                
                        if ( this.element.is("[type=checkbox]") ) {
                            this.type = "checkbox";

                  Function _bind has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _bind: function( element, handlers ) {
                          // no element argument, shuffle and use this.element
                          if ( !handlers ) {
                              handlers = element;
                              element = this.element;

                    Function _destroy has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _destroy: function() {
                            // destroy (sub)menus
                            this.element
                                .removeAttr( "aria-activedescendant" )
                                .find( ".ui-menu" ).andSelf()

                      Function cancel has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          cancel: function() {
                      
                              if(this.dragging) {
                      
                                  this._mouseUp({ target: null });

                        Function cloneFixAttributes has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function cloneFixAttributes( src, dest ) {
                            var nodeName;
                        
                            // We do not need to do anything for non-Elements
                            if ( dest.nodeType !== 1 ) {

                          Function dirCheck has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                              for ( var i = 0, l = checkSet.length; i < l; i++ ) {
                                  var elem = checkSet[i];
                          
                                  if ( elem ) {

                            Function _isWatched has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                FileSystemEntry.prototype._isWatched = function (relaxed) {
                                    var watchedRoot = this._watchedRoot,
                                        filterResult = this._watchedRootFilterResult;
                            
                                    if (!watchedRoot) {
                            Severity: Minor
                            Found in src/filesystem/FileSystemEntry.js - About 1 hr to fix

                              Function _bindColorFormatToRadioButton has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  ColorEditor.prototype._bindColorFormatToRadioButton = function (buttonClass, propertyName, value) {
                                      var handler,
                                          self = this;
                                      handler = function (event) {
                                          var newFormat   = $(event.currentTarget).html().toLowerCase().replace("%", "p"),
                              Severity: Minor
                              Found in src/extensions/default/InlineColorEditor/ColorEditor.js - About 1 hr to fix

                                Function insertHint has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    SpecialCharHints.prototype.insertHint = function (completion) {
                                        var start = {line: -1, ch: -1},
                                            end = {line: -1, ch: -1},
                                            cursor = this.editor.getCursorPos(),
                                            line = this.editor.document.getLine(cursor.line),
                                Severity: Minor
                                Found in src/extensions/default/HtmlEntityCodeHints/main.js - About 1 hr to fix

                                  Function doInParallel has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function doInParallel(items, beginProcessItem, failFast) {
                                          var promises = [];
                                          var masterDeferred = new $.Deferred();
                                  
                                          if (items.length === 0) {
                                  Severity: Minor
                                  Found in src/utils/Async.js - About 1 hr to fix

                                    Function _isFilePathVisible has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _isFilePathVisible(treeData, path) {
                                            if (path === null) {
                                                return null;
                                            } else if (path === "") {
                                                return true;
                                    Severity: Minor
                                    Found in src/project/FileTreeViewModel.js - About 1 hr to fix

                                      Function findSpecialCharacters has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function findSpecialCharacters(str) {
                                              var i, c;
                                      
                                              // the beginning of the string is always special
                                              var specials = [0];
                                      Severity: Minor
                                      Found in src/utils/StringMatch.js - About 1 hr to fix

                                        Function doCreate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function doCreate(path, isFolder) {
                                                var d = new $.Deferred();
                                                var filename = FileUtils.getBaseName(path);
                                        
                                                // Check if filename
                                        Severity: Minor
                                        Found in src/project/ProjectModel.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language