adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function open has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    open: function() {
        if ( this._isOpen ) {
            return;
        }

    Function assume has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function assume() {
            if (option.couch) {
                combine(predefined, couch);
            }
    
    

      Function when has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          when: function( firstParam ) {
              var args = sliceDeferred.call( arguments, 0 ),
                  i = 0,
                  length = args.length,
                  pValues = new Array( length ),

        Function ColorEditor has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function ColorEditor($parent, color, callback, swatches) {
                // Create the DOM structure, filling in localized strings via Mustache
                this.$element = $(Mustache.render(ColorEditorTemplate, Strings));
                $parent.append(this.$element);
        
        
        Severity: Minor
        Found in src/extensions/default/InlineColorEditor/ColorEditor.js - About 1 hr to fix

          Function addCombinator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function addCombinator( matcher, combinator, base ) {
              var dir = combinator.dir,
                  checkNonElements = base && dir === "parentNode",
                  doneName = done++;
          
          
          Severity: Minor
          Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

            Function _formatParameterHint has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _formatParameterHint(params, appendSeparators, appendParameter, typesOnly) {
                    var result = "",
                        pendingOptional = false;
            
                    appendParameter("(", "", -1);
            Severity: Minor
            Found in src/features/ParameterHintsManager.js - About 1 hr to fix

              Function _buildListView has 39 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  InlineMenu.prototype._buildListView = function (items) {
                      var self            = this,
                          view            = { items: [] },
                          _addItem;
              
              
              Severity: Minor
              Found in src/widgets/InlineMenu.js - About 1 hr to fix

                Function settingsToRegExp has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function settingsToRegExp(settings, baseRegExp, defaultRegExp) {
                        var regExpString = "";
                
                        if (settings instanceof Array && settings.length > 0) {
                
                
                Severity: Minor
                Found in src/JSUtils/Preferences.js - About 1 hr to fix

                  Function addSubMenu has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      Menu.prototype.addSubMenu = function (name, id, position, relativeID) {
                  
                          if (!name || !id) {
                              console.error("addSubMenu(): missing required parameters: name and id");
                              return null;
                  Severity: Minor
                  Found in src/command/Menus.js - About 1 hr to fix

                    Function getHints has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        JSHints.prototype.getHints = function (key) {
                            var cursor = session.getCursor(),
                                token = session.getToken(cursor);
                    
                            if (token && HintUtils.hintableKey(key, !noHintsOnDot) && HintUtils.hintable(token)) {
                    Severity: Minor
                    Found in src/extensions/default/JavaScriptCodeHints/main.js - About 1 hr to fix

                      Function update has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          DOMUpdater.prototype.update = function () {
                              var markCache = {},
                                  newSubtree = this.build(true, markCache),
                                  result = {
                                      // default result if we didn't identify a changed portion

                        Function init has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function init(domainManager) {
                            _domainManager = domainManager;
                            if (!domainManager.hasDomain("webSocketTransport")) {
                                domainManager.registerDomain("webSocketTransport", {major: 0, minor: 1});
                            }
                        Severity: Minor
                        Found in src/LiveDevelopment/transports/node/WebSocketTransportDomain.js - About 1 hr to fix

                          Function getAnalyticsData has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function getAnalyticsData(eventParams) {
                                  var userUuid = PreferencesManager.getViewState("UUID"),
                                      olderUuid = PreferencesManager.getViewState("OlderUUID");
                          
                                  //Create default Values
                          Severity: Minor
                          Found in src/extensions/default/HealthData/HealthDataManager.js - About 1 hr to fix

                            Function _mouseStart has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _mouseStart: function(event) {
                            
                                    var o = this.options;
                            
                                    //Create and append the visible helper

                              Function expression has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function expression(rbp, initial) {
                                      var left, isArray = false;
                              
                                      if (nexttoken.id === '(end)')
                                          error("Unexpected early end of program.", token);

                                Function getWidthOrHeight has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function getWidthOrHeight( elem, name, extra ) {
                                
                                    // Start with offset property
                                    var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
                                        i = name === "width" ? 1 : 0,

                                  Function entryRenamed has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      FileIndex.prototype.entryRenamed = function (oldPath, newPath, isDirectory) {
                                          var path,
                                              renameMap = {},
                                              oldParentPath = FileUtils.getParentPath(oldPath),
                                              newParentPath = FileUtils.getParentPath(newPath);
                                  Severity: Minor
                                  Found in src/filesystem/FileIndex.js - About 1 hr to fix

                                    Function startRename has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        ProjectModel.prototype.startRename = function (path, isMoved) {
                                            var d = new $.Deferred();
                                            path = _getPathFromFSObject(path);
                                            if (!path) {
                                                path = this._selections.context;
                                    Severity: Minor
                                    Found in src/project/ProjectModel.js - About 1 hr to fix

                                      Function _getPropNameInfo has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _getPropNameInfo(ctx) {
                                              var propName = "",
                                                  offset = TokenUtils.offsetInToken(ctx),
                                                  tokenString = ctx.token.string,
                                                  excludedCharacters = [";", "{", "}"];
                                      Severity: Minor
                                      Found in src/language/CSSUtils.js - About 1 hr to fix

                                        Function update has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            DOMUpdater.prototype.update = function () {
                                                var markCache = {},
                                                    newSubtree = this.build(true, markCache),
                                                    result = {
                                                        // default result if we didn't identify a changed portion
                                        Severity: Minor
                                        Found in src/language/HTMLInstrumentation.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language