adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

Function refreshPositions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    refreshPositions: function(fast) {

        //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
        if(this.offsetParent && this.helper) {
            this.offset.parent = this._getParentOffset();

    Function _create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _create: function() {
            var that = this;
    
            this.element.addClass("ui-selectable");
    
    

      Function html has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          html: function( value ) {
              return jQuery.access( this, function( value ) {
                  var elem = this[0] || {},
                      i = 0,
                      l = this.length;

        Function find has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            find: function( selector ) {
                var self = this,
                    i, l;
        
                if ( typeof selector !== "string" ) {

          Function show has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              show: function( speed, easing, callback ) {
                  var elem, display;
          
                  if ( speed || speed === 0 ) {
                      return this.animate( genFx("show", 3), speed, easing, callback );

            Function doRedraw has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        function doRedraw() {
                            // only run this if the mouse is down so we don't constantly loop even
                            // after we're done resizing.
                            if (!isResizing) {
                                return;
            Severity: Minor
            Found in src/utils/Resizer.js - About 1 hr to fix

              Function handleClick has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      handleClick: function (e) {
                          // If we're renaming, allow the click to go through to the rename input.
                          if (this.props.entry.get("rename")) {
                              e.stopPropagation();
                              return;
              Severity: Minor
              Found in src/project/FileTreeView.js - About 1 hr to fix

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

                        function _keydownHook(event) {
                            var keyCode;
                
                            // (page) up, (page) down, enter and tab key are handled by the list
                            if (event.type === "keydown") {
                Severity: Minor
                Found in src/utils/DropdownEventHandler.js - About 1 hr to fix

                  Function _mergeContentsIntoChildren has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function _mergeContentsIntoChildren(children, contents) {
                  
                          // We keep track of the names we've seen among the current directory entries to make
                          // it easy to spot the names that we *haven't* seen (in other words, files that have
                          // been deleted).
                  Severity: Minor
                  Found in src/project/FileTreeViewModel.js - About 1 hr to fix

                    Function _mergePanes has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function _mergePanes() {
                            if (_panes.hasOwnProperty(SECOND_PANE)) {
                    
                                var firstPane = _panes[FIRST_PANE],
                                    secondPane = _panes[SECOND_PANE],
                    Severity: Minor
                    Found in src/view/MainViewManager.js - About 1 hr to fix

                      Function setSelected has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          ProjectModel.prototype.setSelected = function (path, doNotOpen) {
                              path = _getPathFromFSObject(path);
                      
                              // Directories are not selectable
                              if (!_pathIsFile(path)) {
                      Severity: Minor
                      Found in src/project/ProjectModel.js - About 1 hr to fix

                        Function _initialLayout has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function _initialLayout(forceRefresh) {
                                var panes = Object.keys(_panes),
                                    size = 100 / panes.length;
                        
                                _.forEach(_panes, function (pane) {
                        Severity: Minor
                        Found in src/view/MainViewManager.js - About 1 hr to fix

                          Function DOMUpdater has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function DOMUpdater(previousDOM, editor, changeList) {
                                  var text, startOffset = 0, startOffsetPos;
                          
                                  this.isIncremental = false;
                          
                          
                          Severity: Minor
                          Found in src/language/HTMLInstrumentation.js - About 1 hr to fix

                            Function positionHint has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function positionHint(xpos, ypos, ybot) {
                                    var hintWidth = $hintContainer.width(),
                                        hintHeight = $hintContainer.height(),
                                        top = ypos - hintHeight - POINTER_TOP_OFFSET,
                                        left = xpos,
                            Severity: Minor
                            Found in src/features/ParameterHintsManager.js - About 1 hr to fix

                              Function interposeFactory has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function interposeFactory(iterable, separator) {
                                  var interposedSequence = makeSequence(iterable);
                                  interposedSequence.size = iterable.size && iterable.size * 2 -1;
                                  interposedSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
                                    var iterations = 0;
                              Severity: Minor
                              Found in src/thirdparty/immutable.js - About 1 hr to fix

                                Function __iteratorUncached has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    skipSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
                                      if (reverse) {
                                        return this.cacheResult().__iterator(type, reverse);
                                      }
                                      var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
                                Severity: Minor
                                Found in src/thirdparty/immutable.js - About 1 hr to fix

                                  Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      finish: function( type ) {
                                          if ( type !== false ) {
                                              type = type || "fx";
                                          }
                                          return this.each(function() {
                                  Severity: Minor
                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                    Function showSearchHints has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        FindBar.prototype.showSearchHints = function () {
                                            var self = this;
                                            var searchFieldInput = self.$("#find-what");
                                            this.searchField = new QuickSearchField(searchFieldInput, {
                                                verticalAdjust: searchFieldInput.offset().top > 0 ? 0 : this._modalBar.getRoot().outerHeight(),
                                    Severity: Minor
                                    Found in src/search/FindBar.js - About 1 hr to fix

                                      Function ModalBar has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function ModalBar(template, autoClose, animate) {
                                              if (animate === undefined) {
                                                  animate = true;
                                              }
                                      
                                      
                                      Severity: Minor
                                      Found in src/widgets/ModalBar.js - About 1 hr to fix

                                        Function searchAndShowResults has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function searchAndShowResults(queryInfo, scope, filter, replaceText, candidateFilesPromise) {
                                                return FindInFiles.doSearchInScope(queryInfo, scope, filter, replaceText, candidateFilesPromise)
                                                    .done(function (zeroFilesToken) {
                                                        // Done searching all files: show results
                                                        if (FindInFiles.searchModel.hasResults()) {
                                        Severity: Minor
                                        Found in src/search/FindInFilesUI.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language