adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function handleShowPerfData has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function handleShowPerfData() {
        var templateVars = {
            delimitedPerfData: PerfUtils.getDelimitedPerfData(),
            perfData: []
        };
Severity: Minor
Found in src/extensions/default/DebugCommands/main.js - About 1 hr to fix

    Function resolve has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        FileSystem.prototype.resolve = function (path, callback) {
            var normalizedPath = this._normalizePath(path, false),
                item = this._index.getEntry(normalizedPath);
    
            if (!item) {
    Severity: Minor
    Found in src/filesystem/FileSystem.js - About 1 hr to fix

      Function inputChangedHandler has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              var inputChangedHandler = function () {
                  // CodeMirror's fastPoll will batch up input events into a consolidated change
                  if (inProgress) {
                      return;
                  }
      Severity: Minor
      Found in src/extensions/samples/TypingSpeedLogger/main.js - About 1 hr to fix

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

            function init(paths) {
                var params = new UrlParams();
        
                if (_init) {
                    // Only init once. Return a resolved promise.
        Severity: Minor
        Found in src/utils/ExtensionLoader.js - About 1 hr to fix

          Function _tryAddToScopeOrder has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _tryAddToScopeOrder: function (shadowEntry) {
                      var shadowScopeOrder = this._defaults._shadowScopeOrder,
                          index = _.findIndex(shadowScopeOrder, function (entry) {
                              return entry === shadowEntry;
                          }),
          Severity: Minor
          Found in src/preferences/PreferencesBase.js - About 1 hr to fix

            Function _createPlaceholder has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _createPlaceholder(treeData, basedir, name, isFolder, options) {
                    options = options || {};
                    var parentPath = _filePathToObjectPath(treeData, basedir);
            
                    if (!parentPath) {
            Severity: Minor
            Found in src/project/FileTreeViewModel.js - About 1 hr to fix

              Function _doJumpToDef has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _doJumpToDef() {
                      var request = null,
                          result = new $.Deferred(),
                          jumpToDefProvider = null,
                          editor = EditorManager.getActiveEditor();
              Severity: Minor
              Found in src/features/JumpToDefManager.js - About 1 hr to fix

                Function updateList has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function updateList(list, index, value) {
                    index = wrapIndex(list, index);
                
                    if (index !== index) {
                      return list;
                Severity: Minor
                Found in src/thirdparty/immutable.js - About 1 hr to fix

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

                      HashArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
                        if (keyHash === undefined) {
                          keyHash = hash(key);
                        }
                        var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
                  Severity: Minor
                  Found in src/thirdparty/immutable.js - About 1 hr to fix

                    Function next has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        MapIterator.prototype.next = function() {
                          var type = this._type;
                          var stack = this._stack;
                          while (stack) {
                            var node = stack.node;
                    Severity: Minor
                    Found in src/thirdparty/immutable.js - About 1 hr to fix

                      Function applyPlacement has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        , applyPlacement: function(offset, placement){
                            var $tip = this.tip()
                              , width = $tip[0].offsetWidth
                              , height = $tip[0].offsetHeight
                              , actualWidth
                      Severity: Minor
                      Found in src/widgets/bootstrap-tooltip.js - About 1 hr to fix

                        Function insertHint has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            CodeHintsProvider.prototype.insertHint = function ($hint) {
                                var editor = EditorManager.getActiveEditor(),
                                    cursor = editor.getCursorPos(),
                                    token = $hint.data("token"),
                                    txt = null,
                        Severity: Minor
                        Found in src/languageTools/DefaultProviders.js - About 1 hr to fix

                          Function setData has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function setData(metadata) {
                                      var locationType,
                                          id = metadata.name,
                                          userExtensionPath = ExtensionLoader.getUserExtensionPath();
                                      if (path.indexOf(userExtensionPath) === 0) {
                          Severity: Minor
                          Found in src/extensibility/ExtensionManager.js - About 1 hr to fix

                            Function _doInspectorDisconnect has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function _doInspectorDisconnect(doCloseWindow) {
                                    var closePromise,
                                        deferred    = new $.Deferred(),
                                        connected   = Inspector.connected();
                            
                            
                            Severity: Minor
                            Found in src/LiveDevelopment/LiveDevelopment.js - About 1 hr to fix

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

                                  function init() {
                                      _isInitialized = true;
                              
                                      foldCode.init();
                                      foldGutter.init();
                              Severity: Minor
                              Found in src/extensions/default/CodeFolding/main.js - About 1 hr to fix

                                Function createList has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function createList(list, isDocumentSymbolRequest) {
                                        var newlist = [];
                                        for (var i = 0; i < list.length; i++) {
                                            var symbolInfo = list[i],
                                                label = symbolInfo.name,
                                Severity: Minor
                                Found in src/extensions/default/PhpTooling/PHPSymbolProviders.js - About 1 hr to fix

                                  Function handleDownloadFailure has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function handleDownloadFailure(message) {
                                          console.log("AutoUpdate : Download of latest installer failed in Attempt " +
                                              (MAX_DOWNLOAD_ATTEMPTS - downloadAttemptsRemaining) + ".\n Reason : " + message);
                                  
                                          if (downloadAttemptsRemaining) {
                                  Severity: Minor
                                  Found in src/extensions/default/AutoUpdate/main.js - About 1 hr to fix

                                    Function queryInlineAtPos has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function queryInlineAtPos(info, offset, expectInline, expectedProperty) {
                                                var widget = null,
                                                    promise;
                                    
                                                runs(function () {
                                    Severity: Minor
                                    Found in src/extensions/default/MDNDocs/unittests.js - About 1 hr to fix

                                      Function keydownHook has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function keydownHook(event) {
                                              var keyHandled = false;
                                      
                                              switch (event.keyCode) {
                                              case KeyEvent.DOM_VK_UP:
                                      Severity: Minor
                                      Found in src/extensions/default/RecentProjects/main.js - About 1 hr to fix

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

                                            drag: function(event, ui) {
                                        
                                                var i = $(this).data("draggable"), o = i.options, scrolled = false;
                                        
                                                if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language