adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

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

    function initPreferences(projectRootPath) {

        // Reject the old preferences if they have not completed.
        if (deferredPreferences && deferredPreferences.state() === "pending") {
            deferredPreferences.reject();
Severity: Minor
Found in src/JSUtils/ScopeManager.js - About 1 hr to fix

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

        Menu.prototype.removeSubMenu = function (subMenuID) {
            var subMenu,
                parentMenuItem,
                commandID = "";
    
    
    Severity: Minor
    Found in src/command/Menus.js - About 1 hr to fix

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

          Editor.prototype.getModeForSelection = function () {
              // Check for mixed mode info
              var self        = this,
                  sels        = this.getSelections(),
                  primarySel  = this.getSelection(),
      Severity: Minor
      Found in src/editor/Editor.js - About 1 hr to fix

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

            DOMNode.prototype.setPayload = function setPayload(payload) {
                this.nodeId = payload.nodeId;
                this.type = payload.nodeType;
                if (payload.nodeName) {
                    this.name = payload.nodeName;
        Severity: Minor
        Found in src/LiveDevelopment/Agents/DOMNode.js - About 1 hr to fix

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

                  function execColorMatch(editor, line, pos) {
                      var colorMatch,
                          ignoreNamedColors;
          
                      function hyphenOnMatchBoundary(match, line) {
          Severity: Minor
          Found in src/extensions/default/QuickView/main.js - About 1 hr to fix

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

                function showPreview(editor, popover) {
                    var token, cm;
            
                    // Figure out which editor we are over
                    if (!editor) {
            Severity: Minor
            Found in src/extensions/default/QuickView/main.js - About 1 hr to fix

              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 _slide has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

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