adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function _refreshValue has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _refreshValue: function() {
        var lastValPercent, valPercent, value, valueMin, valueMax,
            oRange = this.options.range,
            o = this.options,
            that = this,

    Function _processTabs has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _processTabs: function() {
            var that = this;
    
            this.tablist = this._getList()
                .addClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )

      Function _destroy has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _destroy: function() {
              if ( this.xhr ) {
                  this.xhr.abort();
              }
      
      

        Function keydown has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    keydown: function( event ) {
                        if ( this.element.prop( "readOnly" ) ) {
                            suppressKeyPress = true;
                            suppressInput = true;
                            suppressKeyPressRepeat = true;

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

              _mouseStart: function(event) {
                  var that = this;
          
                  this.opos = [event.pageX, event.pageY];
          
          

            Function done has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function done() {
                config.autorun = true;
            
                // Log the last module results
                if ( config.currentModule ) {

              Function getContents has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  Directory.prototype.getContents = function (callback) {
                      if (this._contentsCallbacks) {
                          // There is already a pending call for this directory's contents.
                          // Push the new callback onto the stack and return.
                          this._contentsCallbacks.push(callback);
              Severity: Major
              Found in src/filesystem/Directory.js - About 2 hrs to fix

                Function iterateList has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function iterateList(list, reverse) {
                    var left = list._origin;
                    var right = list._capacity;
                    var tailPos = getTailOffset(right);
                    var tail = list._tail;
                Severity: Major
                Found in src/thirdparty/immutable.js - About 2 hrs to fix

                  Function getSearchMatches has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function getSearchMatches(contents, queryExpr) {
                      if (!contents) {
                          return;
                      }
                      // Quick exit if not found or if we hit the limit
                  Severity: Major
                  Found in src/search/node/FindInFilesDomain.js - About 2 hrs to fix

                    Function exports has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    module.exports = function (grunt) {
                    
                        var _       = require("lodash"),
                            common  = require("./lib/common")(grunt),
                            build   = require("./build")(grunt),
                    Severity: Major
                    Found in tasks/pack-web-dependencies.js - About 2 hrs to fix

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