adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

Function _createServer has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function _createServer() {
    if (!_wsServer) {
        // TODO: make port configurable, or use random port
        _wsServer = new WebSocketServer({port: SOCKET_PORT});
        _wsServer.on("connection", function (ws) {

    Function downloadInstaller has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function downloadInstaller(requester, isInitialAttempt, updateParams) {
            updateParams = updateParams || _updateParams;
            var currentRequester = requester || "";
            try {
                var ext = path.extname(updateParams.installerName);
    Severity: Major
    Found in src/extensions/default/AutoUpdate/node/AutoUpdateDomain.js - About 2 hrs to fix

      Function _setOption has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _setOption: function( key, value ) {
              var isDraggable, isResizable,
                  uiDialog = this.uiDialog;
      
              switch ( key ) {

        Function _clear has 51 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _clear: function(event, noPropagation) {
        
                this.reverting = false;
                // We delay all events that have to be triggered to after the point where the placeholder has been removed and
                // everything else normalized again

          Function remove has 51 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              remove: function( elem, types, handler, selector, mappedTypes ) {
          
                  var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
                      t, tns, type, origType, namespaces, origCount,
                      j, events, special, handle, eventType, handleObj;

            Function _createInlineEditor has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _createInlineEditor(hostEditor, functionName) {
                    // Use Tern jump-to-definition helper, if it's available, to find InlineEditor target.
                    var helper = brackets._jsCodeHintsHelper;
                    if (helper === null) {
                        return null;
            Severity: Major
            Found in src/extensions/default/JavaScriptQuickEdit/main.js - About 2 hrs to fix

              Function load has 51 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      load: function () {
                          var result = new $.Deferred();
                          var path = this.path;
                          var createIfMissing = this.createIfMissing;
                          var recreateIfInvalid = this.recreateIfInvalid;
              Severity: Major
              Found in src/preferences/PreferencesBase.js - About 2 hrs to fix

                Function _refreshInterface has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    NodeConnection.prototype._refreshInterface = function () {
                        var deferred = $.Deferred();
                        var self = this;
                
                        var pendingDeferreds = this._pendingInterfaceRefreshDeferreds;
                Severity: Major
                Found in src/utils/NodeConnection.js - About 2 hrs to fix

                  Function _open has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function _open(paneId, file, optionsIn) {
                          var result = new $.Deferred(),
                              options = optionsIn || {};
                  
                          function doPostOpenActivation() {
                  Severity: Major
                  Found in src/view/MainViewManager.js - About 2 hrs to fix

                    Function domdiff has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function domdiff(oldNode, newNode) {
                            var queue = [],
                                edits = [],
                                moves = [],
                                newElement,
                    Severity: Major
                    Found in src/language/HTMLDOMDiff.js - About 2 hrs to fix

                      Function showInfoBar has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function showInfoBar(msgObj) {
                              var jsonToMustache = generateJsonForMustache(msgObj),
                                  $infoBarElement = $(Mustache.render(InfoBarHtml, jsonToMustache));
                      
                              cleanInfoBar(); //Remove an already existing info bar, if any
                      Severity: Major
                      Found in src/widgets/infobar.js - About 2 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
                                    var c = $(o.containment);
                                    var ce = c[0]; if(!ce) return;
                                    var co = c.offset();
                                    var over = ($(ce).css("overflow") != 'hidden');

                          Function _mouseCapture has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _mouseCapture: function( event ) {
                                  var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
                                      that = this,
                                      o = this.options;
                          
                          

                            Function animateClass has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            $.effects.animateClass = function( value, duration, easing, callback ) {
                                var o = $.speed( duration, easing, callback );
                            
                                return this.queue( function() {
                                    var animated = $( this ),

                              Consider simplifying this complex logical expression.
                              Open

                                  if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
                                      first.charAt(0) === "<" && !rnocache.test( first ) &&
                                      (jQuery.support.checkClone || !rchecked.test( first )) &&
                                      (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
                              
                              

                                Consider simplifying this complex logical expression.
                                Open

                                                if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                     ( !handler || handler.guid === handleObj.guid ) &&
                                                     ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
                                                     ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                    eventType.splice( j--, 1 );

                                  Function handleExtractToFunction has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function handleExtractToFunction() {
                                          var editor = EditorManager.getActiveEditor();
                                          var result = new $.Deferred(); // used only for testing purpose
                                  
                                          if (editor.getSelections().length > 1) {
                                  Severity: Minor
                                  Found in src/extensions/default/JavaScriptRefactoring/ExtractToFunction.js - About 2 hrs to fix

                                    Function _handleRefactor has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _handleRefactor(functionName) {
                                            var eventName, eventType = "";
                                            
                                            switch (functionName) {
                                            case REFACTOR_RENAME:
                                    Severity: Minor
                                    Found in src/extensions/default/JavaScriptRefactoring/main.js - About 2 hrs to fix

                                      Function step has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          step: function( gotoEnd ) {
                                              var p, n, complete,
                                                  t = fxNow || createFxNow(),
                                                  done = true,
                                                  elem = this.elem,

                                        Function initTypingSpeedLogging has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function initTypingSpeedLogging() {
                                                var editor = null,
                                                    inputField = null,
                                                    inProgress = false;
                                        
                                        
                                        Severity: Minor
                                        Found in src/extensions/samples/TypingSpeedLogger/main.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language