adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

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 _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 _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 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 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 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 _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 _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 _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 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 _createNewListItem has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            WorkingSetView.prototype._createNewListItem = function (file) {
                                var self = this,
                                    selectedFile = MainViewManager.getCurrentlyViewedFile(this.paneId),
                                    data = {fullPath: file.fullPath,
                                            name: file.name,
                        Severity: Minor
                        Found in src/project/WorkingSetView.js - About 1 hr to fix

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

                              function openAndSelectDocument(fullPath, fileSelectionFocus, paneId) {
                                  var result,
                                      curDocChangedDueToMe = _curDocChangedDueToMe;
                          
                                  function _getDerivedPaneContext() {
                          Severity: Minor
                          Found in src/project/FileViewController.js - About 1 hr to fix

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

                                function PreferencesSystem(contextBuilder) {
                                    this.contextBuilder = contextBuilder;
                            
                                    this._knownPrefs = {};
                                    this._scopes = {
                            Severity: Minor
                            Found in src/preferences/PreferencesBase.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

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

                                      handlers: function( event, handlers ) {
                                          var i, matches, sel, handleObj,
                                              handlerQueue = [],
                                              delegateCount = handlers.delegateCount,
                                              cur = event.target;
                                  Severity: Minor
                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                        attr: function( elem, name, value ) {
                                            var hooks, ret,
                                                nType = elem.nodeType;
                                    
                                            // don't get/set attributes on text, comment and attribute nodes
                                    Severity: Minor
                                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                          function _saveFileList(fileList) {
                                              // Do in serial because doSave shows error UI for each file, and we don't want to stack
                                              // multiple dialogs on top of each other
                                              var userCanceled = false,
                                                  filesAfterSave = [];
                                      Severity: Minor
                                      Found in src/document/DocumentCommandHandlers.js - About 1 hr to fix

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

                                            function _disableCache() {
                                                var result = new $.Deferred();
                                        
                                                if (brackets.inBrowser) {
                                                    result.resolve();
                                        Severity: Minor
                                        Found in src/document/DocumentCommandHandlers.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language