adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

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

    drag: function(draggable, event) {

        //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
        if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);

    Function left has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            left: function( position, data ) {
                var within = data.within,
                    withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
                    outerWidth = within.width,
                    collisionPosLeft = position.left - data.collisionPosition.marginLeft,

      Function refresh has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          refresh: function() {
              var isDisabled = this.element.is( ":disabled" );
              if ( isDisabled !== this.options.disabled ) {
                  this._setOption( "disabled", isDisabled );
              }

        Function doFunction has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function doFunction(i, statement) {
                var f,
                    oldOption = option,
                    oldScope  = scope;
        
        

          Function top has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  top: function( position, data ) {
                      var within = data.within,
                          withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
                          outerHeight = data.within.height,
                          collisionPosTop = position.top - data.collisionPosition.marginTop,

            Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                addClass: function( value ) {
                    var classNames, i, l, elem,
                        setClass, c, cl;
            
                    if ( jQuery.isFunction( value ) ) {

              Function parseDate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Globalize.parseDate = function( value, formats, culture ) {
                  culture = this.findClosestCulture( culture );
              
                  var date, prop, patterns;
                  if ( formats ) {

                Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        setup: function() {
                
                            if ( rformElems.test( this.nodeName ) ) {
                                // IE doesn't fire change on a check/radio until blur; trigger it on click
                                // after a propertychange. Eat the blur-change in special.change.handle.

                  Function create has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      Directory.prototype.create = function (callback) {
                          callback = callback || function () {};
                  
                          // Block external change events until after the write has finished
                          this._fileSystem._beginChange();
                  Severity: Minor
                  Found in src/filesystem/Directory.js - About 1 hr to fix

                    Function _lastSegmentSearch has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function _lastSegmentSearch(query, str, originalQuery, originalStr, specials, startingSpecial, lastSegmentStart) {
                            var queryCounter, matchList;
                    
                            // It's possible that the query is longer than the last segment.
                            // If so, we can chop off the bit that we know couldn't possibly be there.
                    Severity: Minor
                    Found in src/utils/StringMatch.js - About 1 hr to fix

                      Function _updateScrollerShadow has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _updateScrollerShadow($displayElement, $scrollElement, $shadowTop, $shadowBottom, isPositionFixed) {
                              var offsetTop           = 0,
                                  scrollElement       = $scrollElement.get(0),
                                  scrollTop           = scrollElement.scrollTop,
                                  topShadowOffset     = Math.min(scrollTop - SCROLL_SHADOW_HEIGHT, 0),
                      Severity: Minor
                      Found in src/utils/ViewUtils.js - About 1 hr to fix

                        Function _filePathToObjectPath has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Function _getFallbackProjectPath has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function _getFallbackProjectPath() {
                                  var fallbackPaths = [],
                                      recentProjects = PreferencesManager.getViewState("recentProjects") || [],
                                      deferred = new $.Deferred();
                          
                          
                          Severity: Minor
                          Found in src/project/ProjectManager.js - About 1 hr to fix

                            Function addMeasurement has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function addMeasurement(id) {
                                    if (!enabled) {
                                        return;
                                    }
                            
                            
                            Severity: Minor
                            Found in src/utils/PerfUtils.js - About 1 hr to fix

                              Function updateSelectionMarker has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      var updateSelectionMarker = function (event, reveal) {
                                          // find the selected list item
                                          var $listItem = $listElement.find(selectedClassName).closest("li");
                              
                                          if (leafClassName) {
                              Severity: Minor
                              Found in src/utils/ViewUtils.js - About 1 hr to fix

                                Function save has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        save: function () {
                                            if (this._saveInProgress) {
                                                if (!this._nextSaveDeferred) {
                                                    this._nextSaveDeferred = new $.Deferred();
                                                }
                                Severity: Minor
                                Found in src/preferences/PreferencesBase.js - About 1 hr to fix

                                  Function getProvidersForPath has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function getProvidersForPath(filePath) {
                                          var language            = LanguageManager.getLanguageForPath(filePath).getId(),
                                              context             = PreferencesManager._buildContext(filePath, language),
                                              installedProviders  = getProvidersForLanguageId(language),
                                              preferredProviders,
                                  Severity: Minor
                                  Found in src/language/CodeInspection.js - About 1 hr to fix

                                    Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                            var i, l, srcElements, destElements,
                                                clone = elem.cloneNode( true ),
                                                inPage = jQuery.contains( elem.ownerDocument, elem );
                                    
                                    
                                    Severity: Minor
                                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                      Function _getPrecedingPropValues has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _getPrecedingPropValues(ctx) {
                                              var lastValue = "",
                                                  curValue,
                                                  propValues = [];
                                              while (ctx.token.string !== ":" && TokenUtils.movePrevToken(ctx)) {
                                      Severity: Minor
                                      Found in src/language/CSSUtils.js - About 1 hr to fix

                                        Function fix has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            fix: function( event ) {
                                                if ( event[ jQuery.expando ] ) {
                                                    return event;
                                                }
                                        
                                        
                                        Severity: Minor
                                        Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language