adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

Function handleSafeToDownload has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function handleSafeToDownload() {
        var downloadFn = function () {
            if (isFirstIterationDownload()) {
                // For the first iteration of download, show download
                //status info in Status bar, and pass download to node
Severity: Minor
Found in src/extensions/default/AutoUpdate/main.js - About 1 hr to fix

    Function _eventHandler has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _eventHandler: function( event ) {
            var options = this.options,
                active = this.active,
                anchor = $( event.currentTarget ),
                tab = anchor.closest( "li" ),

      Function _animate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _animate: function( toShow, toHide, data ) {
              var total, easing, duration,
                  that = this,
                  down = toShow.length &&
                      ( !toHide.length || ( toShow.index() < toHide.index() ) ),

        Function _toggle has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                _toggle: function( event, eventData ) {
                    var that = this,
                        toShow = eventData.newPanel,
                        toHide = eventData.oldPanel,
                        fx = this._getFx();

          Function _slide has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _slide: function( event, index, newVal ) {
                  var otherVal,
                      newValues,
                      allowed;
          
          

            Function access has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
                    var exec,
                        bulk = key == null,
                        i = 0,
                        length = elems.length;

              Function attr has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  attr: function( elem, name, value, pass ) {
                      var ret, hooks, notxml,
                          nType = elem.nodeType;
              
                      // don't get/set attributes on text, comment and attribute nodes

                Function _formatBasicPref has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _formatBasicPref(prefItem, prefName, tabIndentStr) {
                
                        if (!prefItem || typeof (prefName) !== "string" || _getPrefType(prefItem) === "object") {
                            // return empty string in case of
                            // object or pref is not defined.
                Severity: Minor
                Found in src/extensions/default/DebugCommands/main.js - About 1 hr to fix

                  Function syncOpenDocuments has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function syncOpenDocuments(title) {
                  
                          title = title || Strings.EXT_MODIFIED_TITLE;
                  
                          // We can become "re-entrant" if the user leaves & then returns to Brackets before we're
                  Severity: Minor
                  Found in src/project/FileSyncManager.js - About 1 hr to fix

                    Function _saveViewState has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function _saveViewState() {
                            function _computeSplitPercentage() {
                                var available,
                                    used;
                    
                    
                    Severity: Minor
                    Found in src/view/MainViewManager.js - About 1 hr to fix

                      Function _scrollLine has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _scrollLine(direction) {
                              var editor        = EditorManager.getCurrentFullEditor(),
                                  textHeight    = editor.getTextHeight(),
                                  cursorPos     = editor.getCursorPos(),
                                  hasSelecction = editor.hasSelection(),
                      Severity: Minor
                      Found in src/view/ViewCommandHandlers.js - About 1 hr to fix

                        Function _showUpdateNotificationDialog has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function _showUpdateNotificationDialog(updates, force) {
                                Dialogs.showModalDialogUsingTemplate(Mustache.render(UpdateDialogTemplate, Strings))
                                    .done(function (id) {
                                        if (id === Dialogs.DIALOG_BTN_DOWNLOAD) {
                                            HealthLogger.sendAnalyticsData(
                        Severity: Minor
                        Found in src/utils/UpdateNotification.js - About 1 hr to fix

                          Function multiFieldSort has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function multiFieldSort(searchResults, fieldSpec) {
                                  // Move field names into an array, with primary field first
                                  var comparisons;
                                  if (Array.isArray(fieldSpec)) {
                                      comparisons = fieldSpec;
                          Severity: Minor
                          Found in src/utils/StringMatch.js - About 1 hr to fix

                            Function getTagAttributes has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function getTagAttributes(editor, pos) {
                                    var attrs       = [],
                                        backwardCtx = TokenUtils.getInitialContext(editor._codeMirror, pos),
                                        forwardCtx  = $.extend({}, backwardCtx);
                            
                            
                            Severity: Minor
                            Found in src/language/HTMLUtils.js - About 1 hr to fix

                              Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  setOffset: function( elem, options, i ) {
                                      var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                                          position = jQuery.css( elem, "position" ),
                                          curElem = jQuery( elem ),
                                          props = {};
                              Severity: Minor
                              Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                Function flipFactory has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function flipFactory(iterable) {
                                    var flipSequence = makeSequence(iterable);
                                    flipSequence._iter = iterable;
                                    flipSequence.size = iterable.size;
                                    flipSequence.flip = function()  {return iterable};
                                Severity: Minor
                                Found in src/thirdparty/immutable.js - About 1 hr to fix

                                  Function addCommunicationArgs has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function addCommunicationArgs(communication, processArgs, isRuntime) {
                                          switch (communication) {
                                              case CommunicationTypes.NodeIPC.type:
                                                  {
                                                      if (isRuntime) {
                                  Severity: Minor
                                  Found in src/languageTools/LanguageClient/ServerUtils.js - About 1 hr to fix

                                    Function _showSummary has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        SearchResultsView.prototype._showSummary = function () {
                                            var count     = this._model.countFilesMatches(),
                                                lastIndex = this._getLastIndex(count.matches),
                                                typeStr = (count.matches > 1) ? Strings.FIND_IN_FILES_MATCHES : Strings.FIND_IN_FILES_MATCH,
                                                filesStr,
                                    Severity: Minor
                                    Found in src/search/SearchResultsView.js - About 1 hr to fix

                                      Function _render has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          QuickSearchField.prototype._render = function (results, query) {
                                              this._displayedQuery = query;
                                              this._displayedResults = results;
                                              if (this._firstHighlightIndex >= 0) {
                                                  this._highlightIndex = this._firstHighlightIndex;
                                      Severity: Minor
                                      Found in src/search/QuickSearchField.js - About 1 hr to fix

                                        Function handleContentsModified has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function handleContentsModified() {
                                                    Dialogs.showModalDialog(
                                                        DefaultDialogs.DIALOG_ID_ERROR,
                                                        Strings.EXT_MODIFIED_TITLE,
                                                        StringUtils.format(
                                        Severity: Minor
                                        Found in src/document/DocumentCommandHandlers.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language