adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

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

        function walk(node) {
            if (node.tag) {
                var attrText = " data-brackets-id='" + node.tagID + "'";

                // If the dom was fully rebuilt, use its offsets. Otherwise, use the marks in the

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

        HTMLDocument.prototype._compareWithBrowser = function (change) {
            var self = this;
    
            RemoteAgent.call("getSimpleDOM").done(function (res) {
                var browserSimpleDOM = JSON.parse(res.result.value),
    Severity: Minor
    Found in src/LiveDevelopment/Documents/HTMLDocument.js - About 1 hr to fix

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

          function getUserInstalledTheme() {
              var result = new $.Deferred();
      
              var installedTheme = themesPref.get("theme"),
                  bracketsTheme;
      Severity: Minor
      Found in src/extensions/default/HealthData/HealthDataUtils.js - About 1 hr to fix

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

            function _addDirectoriesForDuplicateBaseNames() {
                var checked = {}, baseName;
                // Find duplicates first
                $.map(_mrofList, function (value, index) {
                    baseName = FileUtils.getBaseName(value.file);
        Severity: Minor
        Found in src/extensions/default/NavigationAndHistory/main.js - About 1 hr to fix

          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 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 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 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 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 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 _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 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 _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 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 _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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language