adobe/brackets

View on GitHub

Showing 3,294 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 setDirectoryContents has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        FileTreeViewModel.prototype.setDirectoryContents = function (path, contents) {
            path = FileUtils.stripTrailingSlash(path);
    
            var intermediate = _createIntermediateDirectories(this._treeData, path),
                objectPath = intermediate.objectPath,
    Severity: Minor
    Found in src/project/FileTreeViewModel.js - About 1 hr to fix

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

          Pane.prototype.showView = function (view) {
              if (this._currentView && this._currentView === view) {
                  this._setViewVisibility(this._currentView, true);
                  this.updateLayout(true);
                  return;
      Severity: Minor
      Found in src/view/Pane.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 renameItem has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              FileTreeViewModel.prototype.renameItem = function (oldPath, newPath) {
                  var treeData = this._treeData,
                      oldObjectPath = _filePathToObjectPath(treeData, oldPath),
                      newDirectoryPath = FileUtils.getParentPath(newPath),
                      newObjectPath = _filePathToObjectPath(treeData, newDirectoryPath);
          Severity: Minor
          Found in src/project/FileTreeViewModel.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 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 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 * 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 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

                          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 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

                                  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

                                    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();

                                      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 })));

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

                                            _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                                    secondary, monthNames, monthNamesShort) {
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language