adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function each has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    each: function( object, callback, args ) {
        var name, i = 0,
            length = object.length,
            isObj = length === undefined || jQuery.isFunction( object );

    Function push has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        push: function( result, actual, expected, message ) {
            if ( !config.current ) {
                throw new Error( "assertion outside test context, was " + sourceFromStacktrace() );
            }
    
    

      Function closest has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          closest: function( selectors, context ) {
              var ret = [], i, l, cur = this[0];
      
              // Array (deprecated as of jQuery 1.7)
              if ( jQuery.isArray( selectors ) ) {

        Function set has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                set: function (id, value, options, doNotSave) {
                    options = options || {};
                    var context = this._getContext(options.context),
        
                        // The case where the "default" scope was chosen specifically is special.
        Severity: Minor
        Found in src/preferences/PreferencesBase.js - About 1 hr to fix

          Function _parseAtRule has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function _parseAtRule(level) {
          
                      // reset these fields to ignore comments preceding @rules
                      ruleStartLine = -1;
                      ruleStartChar = -1;
          Severity: Minor
          Found in src/language/CSSUtils.js - About 1 hr to fix

            Function mapFactory has 33 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function mapFactory(iterable, mapper, context) {
                var mappedSequence = makeSequence(iterable);
                mappedSequence.size = iterable.size;
                mappedSequence.has = function(key ) {return iterable.has(key)};
                mappedSequence.get = function(key, notSetValue)  {
            Severity: Minor
            Found in src/thirdparty/immutable.js - About 1 hr to fix

              Function show has 33 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  show: function() {
                    /***** [changed for Brackets: moved some variables to updatePosition()] *****/
                    var $tip
                      , that = this;
                    /***** [/changed for Brackets] *****/
              Severity: Minor
              Found in src/widgets/bootstrap-twipsy-mod.js - About 1 hr to fix

                Function _filterCallback has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    QuickNavigateDialog.prototype._filterCallback = function (query) {
                        // Re-evaluate which plugin is active each time query string changes
                        currentPlugin = null;
                
                        // "Go to line" mode is special-cased
                Severity: Minor
                Found in src/search/QuickOpen.js - About 1 hr to fix

                  Function openSearchBar has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function openSearchBar(editor, replace) {
                          var cm = editor._codeMirror,
                              state = getSearchState(cm);
                  
                          // Use the selection start as the searchStartPos. This way if you
                  Severity: Minor
                  Found in src/search/FindReplace.js - About 1 hr to fix

                    Function show has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        InstallExtensionDialog.prototype.show = function (urlToInstall) {
                            if (this._state !== STATE_CLOSED) {
                                // Somehow the dialog got invoked twice. Just ignore this.
                                return this._dialogDeferred.promise();
                            }
                    Severity: Minor
                    Found in src/extensibility/InstallExtensionDialog.js - About 1 hr to fix

                      Function install has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function install(path, nameHint, _doUpdate) {
                              return _extensionManagerCall(function (extensionManager) {
                                  var d                       = new $.Deferred(),
                                      destinationDirectory    = ExtensionLoader.getUserExtensionPath(),
                                      disabledDirectory       = destinationDirectory.replace(/\/user$/, "/disabled"),
                      Severity: Minor
                      Found in src/extensibility/Package.js - About 1 hr to fix

                        Function _updateDatepicker has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _updateDatepicker: function(inst) {
                                this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
                                var borders = $.datepicker._getBorders(inst.dpDiv);
                                instActive = inst; // for delegate hover events
                                inst.dpDiv.empty().append(this._generateHTML(inst));

                          Function hasHtmlHints has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              UrlCodeHints.prototype.hasHtmlHints = function (editor, implicitChar) {
                                  var tagInfo,
                                      query,
                                      tokenType;
                          
                          
                          Severity: Minor
                          Found in src/extensions/default/UrlCodeHints/main.js - About 1 hr to fix

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

                                _destroy: function() {
                                    var contents;
                            
                                    // clean up main element
                                    this.element

                              Function _normalizeArguments has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function _normalizeArguments( effect, options, speed, callback ) {
                              
                                  // allow passing all optinos as the first parameter
                                  if ( $.isPlainObject( effect ) ) {
                                      options = effect;

                                Function left has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        left: function( position, data ) {
                                            var within = data.within,
                                                withinOffset = within.offset.left + within.scrollLeft,
                                                outerWidth = within.width,
                                                offsetLeft = within.isWindow ? 0 : within.offset.left,

                                  Function ATTR has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          ATTR: function( elem, match ) {
                                              var name = match[1],
                                                  result = Sizzle.attr ?
                                                      Sizzle.attr( elem, name ) :
                                                      Expr.attrHandle[ name ] ?

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

                                        setOffset: function( elem, options, i ) {
                                            var position = jQuery.css( elem, "position" );
                                    
                                            // set position first, in-case top/left are set even on static elem
                                            if ( position === "static" ) {

                                      Function componentDidUpdate has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              componentDidUpdate: function () {
                                                  if (!this.props.visible) {
                                                      return;
                                                  }
                                      
                                      
                                      Severity: Minor
                                      Found in src/project/FileTreeView.js - About 1 hr to fix

                                        Function waitForAll has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function waitForAll(promises, failOnReject, timeout) {
                                                var masterDeferred = new $.Deferred(),
                                                    results = [],
                                                    count = 0,
                                                    sawRejects = false;
                                        Severity: Minor
                                        Found in src/utils/Async.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language