adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

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

    LiveHTMLDocument.prototype._onChange = function (event, doc, change) {
        // Make sure LiveHTML is turned on
        if (!this._instrumentationEnabled) {
            return;
        }
Severity: Minor
Found in src/LiveDevelopment/MultiBrowserImpl/documents/LiveHTMLDocument.js - About 1 hr to fix

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

            function formatTypeDataForToken($hintObj, token) {
    
                if (!hintDetailsEnabled) {
                    return;
                }
    Severity: Minor
    Found in src/extensions/default/JavaScriptCodeHints/main.js - About 1 hr to fix

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

          HTMLDocument.prototype._onChange = function (event, editor, change) {
              // Make sure LiveHTML is turned on
              if (!this._instrumentationEnabled) {
                  return;
              }
      Severity: Minor
      Found in src/LiveDevelopment/Documents/HTMLDocument.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;
        
        

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

                  getStylesheetText: function (msg) {
                      var i,
                          sheet,
                          text = "";
                      for (i = 0; i < window.document.styleSheets.length; i++) {

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

            $.effects.effect.highlight = function( o, done ) {
                var elem = $( this ),
                    props = [ "backgroundImage", "backgroundColor", "opacity" ],
                    mode = $.effects.setMode( elem, o.mode || "show" ),
                    animation = {

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

                      function expectReferences(referencesExpected) {
                          var refPromise,
                              results = null,
                              complete = false;
                          runs(function () {
              Severity: Minor
              Found in src/extensions/default/PhpTooling/unittests.js - About 1 hr to fix

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

                    _mouseStop: function(event) {
                
                        //If we are using droppables, inform the manager about the drop
                        var dropped = false;
                        if ($.ui.ddmanager && !this.options.dropBehaviour)

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

                      values: function( index, newValue ) {
                          var vals,
                              newValues,
                              i;
                  
                  

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

                        function warning(m, t, a, b, c, d) {
                            var ch, l, w;
                            t = t || nexttoken;
                            if (t.id === '(end)') {  // `~
                                t = token;

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

                      $.effects.effect.transfer = function( o, done ) {
                          var elem = $( this ),
                              target = $( o.to ),
                              targetFixed = target.css( "position" ) === "fixed",
                              body = $("body"),

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

                            _initSource: function() {
                                var array, url,
                                    that = this;
                                if ( $.isArray(this.options.source) ) {
                                    array = this.options.source;

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