adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function chain has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function chain(functions, args) {
        var deferred = $.Deferred();

        function chainHelper(index, args) {
            if (functions.length === index) {
Severity: Minor
Found in src/utils/Async.js - About 1 hr to fix

    Function parseLessCode has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function parseLessCode(code, url) {
            var result = new $.Deferred(),
                options;
    
            if (url) {
    Severity: Minor
    Found in src/utils/ExtensionUtils.js - About 1 hr to fix

      Function doSequentially has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function doSequentially(items, beginProcessItem, failAndStopFast) {
      
              var masterDeferred = new $.Deferred(),
                  hasFailed = false;
      
      
      Severity: Minor
      Found in src/utils/Async.js - About 1 hr to fix

        Function getIcons has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                getIcons: function () {
                    var result,
                        extensions = this.props.extensions;
        
                    if (extensions && extensions.get("icons")) {
        Severity: Minor
        Found in src/project/FileTreeView.js - About 1 hr to fix

          Function _findAllMatchingSelectorsInText has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function _findAllMatchingSelectorsInText(text, selector, mode) {
                  var allSelectors = extractAllSelectors(text, mode);
                  var result = [];
          
                  // For now, we only match the rightmost simple selector, and ignore
          Severity: Minor
          Found in src/language/CSSUtils.js - About 1 hr to fix

            Function focus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Pane.prototype.focus = function () {
                    var current = window.document.activeElement,
                        self = this;
            
                    // Helper to focus the current view if it can
            Severity: Minor
            Found in src/view/Pane.js - About 1 hr to fix

              Function off has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  off: function( types, selector, fn ) {
                      var handleObj, type;
                      if ( types && types.preventDefault && types.handleObj ) {
                          // ( event )  dispatched jQuery.Event
                          handleObj = types.handleObj;
              Severity: Minor
              Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                Function * has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        "*": [ function( prop, value ) {
                            var tween = this.createTween( prop, value ),
                                target = tween.cur(),
                                parts = rfxnum.exec( value ),
                                unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                Severity: Minor
                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                  Function hashString has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      hashString: function(data, len, seed) {
                          var c1 = 0xcc9e2d51, c2 = 0x1b873593;
                  
                          var h1 = seed;
                          var roundedEnd = len & ~0x1;
                  Severity: Minor
                  Found in src/thirdparty/murmurhash3_gc.js - About 1 hr to fix

                    Function offset has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        offset: function( options ) {
                            if ( arguments.length ) {
                                return options === undefined ?
                                    this :
                                    this.each(function( i ) {
                    Severity: Minor
                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                      Function handleFileDelete has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function handleFileDelete() {
                              var entry = ProjectManager.getSelectedItem();
                              Dialogs.showModalDialog(
                                  DefaultDialogs.DIALOG_ID_EXT_DELETED,
                                  Strings.CONFIRM_DELETE_TITLE,
                      Severity: Minor
                      Found in src/document/DocumentCommandHandlers.js - About 1 hr to fix

                        Function updateFileAndHeaderCheckboxes has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function updateFileAndHeaderCheckboxes($clickedRow, isChecked) {
                                    var $firstMatch = ($clickedRow.data("item-index") === 0) ? $clickedRow :
                                            $clickedRow.prevUntil(".file-section").last(),
                                        $fileRow = $firstMatch.prev(),
                                        $siblingRows = $fileRow.nextUntil(".file-section"),
                        Severity: Minor
                        Found in src/search/SearchResultsView.js - About 1 hr to fix

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

                            , keydown: function (e) {
                                var $this
                                  , $items
                                  , $active
                                  , $parent
                          Severity: Minor
                          Found in src/widgets/bootstrap-dropdown.js - About 1 hr to fix

                            Function createInterface has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                NodeToBracketsInterface.prototype.createInterface = function (methodName, respond) {
                                    var self = this;
                                    return function (params) {
                                        var callObject = {
                                            method: methodName,
                            Severity: Minor
                            Found in src/languageTools/LanguageClient/NodeToBracketsInterface.js - About 1 hr to fix

                              Function getGitInfo has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function getGitInfo(cwd) {
                                      var opts = { cwd: cwd, maxBuffer: 1024 * 1024 },
                                          json = {};
                              
                                      // count the number of commits for our version number
                              Severity: Minor
                              Found in tasks/build.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                            if (endInclusive) {
                                                return (start.line < pos.line || start.ch <= pos.ch) &&  // inclusive
                                                    (end.line > pos.line   || end.ch >= pos.ch);      // inclusive
                                            } else {
                                                return (start.line < pos.line || start.ch <= pos.ch) &&  // inclusive
                                Severity: Major
                                Found in src/editor/Editor.js - About 1 hr to fix

                                  Function _generateMonthYearHeader has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                              secondary, monthNames, monthNamesShort) {

                                    Consider simplifying this complex logical expression.
                                    Open

                                                if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
                                                    (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if ($.datepicker._datepickerShowing)
                                                  switch (event.keyCode) {
                                                      case 9: $.datepicker._hideDatepicker();
                                                              handled = false;
                                                              break; // hide on tab out

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                                                    var that = this;
                                                    $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                                                        if(that._trigger("stop", event) !== false) {
                                                            that._clear();
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language