adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function slide has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.effects.effect.slide = function( o, done ) {

    // Create element
    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "width", "height" ],

    Function drop has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    $.effects.effect.drop = function( o, done ) {
    
        var el = $( this ),
            props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
            mode = $.effects.setMode( el, o.mode || "hide" ),

      Function jsonObject has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function jsonObject() {
                  var o = {}, t = nexttoken;
                  advance('{');
                  if (nexttoken.id !== '}') {
                      for (;;) {

        Function watch has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            FileSystem.prototype.watch = function (entry, filter, filterGlobs, callback) {
                // make filterGlobs an optional argument to stay backwards compatible
                if (typeof callback === "undefined" && typeof filterGlobs === "function") {
                    callback = filterGlobs;
                    filterGlobs = null;
        Severity: Minor
        Found in src/filesystem/FileSystem.js - About 1 hr to fix

          Function fileOpened has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function fileOpened(filePath, addedToWorkingSet, encoding) {
                  if (!shouldLogHealthData()) {
                      return;
                  }
                  var fileExtension = FileUtils.getFileExtension(filePath),
          Severity: Minor
          Found in src/utils/HealthLogger.js - About 1 hr to fix

            Function checkDoc has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function checkDoc(doc) {
                        var result = new $.Deferred();
            
                        // Check file timestamp / existence
            
            
            Severity: Minor
            Found in src/project/FileSyncManager.js - About 1 hr to fix

              Function _getImportUrlInfo has 37 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _getImportUrlInfo(ctx, editor) {
                      var backwardPos = $.extend({}, ctx.pos),
                          forwardPos  = $.extend({}, ctx.pos),
                          backwardCtx,
                          forwardCtx,
              Severity: Minor
              Found in src/language/CSSUtils.js - About 1 hr to fix

                Function _loadAndSetMode has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    Language.prototype._loadAndSetMode = function (mode) {
                        var result      = new $.Deferred(),
                            self        = this,
                            mimeMode; // Mode can be an array specifying a mode plus a MIME mode defined by that mode ["clike", "text/x-c++src"]
                
                
                Severity: Minor
                Found in src/language/LanguageManager.js - About 1 hr to fix

                  Function takeWhileFactory has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function takeWhileFactory(iterable, predicate, context) {
                      var takeSequence = makeSequence(iterable);
                      takeSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
                        if (reverse) {
                          return this.cacheResult().__iterate(fn, reverse);
                  Severity: Minor
                  Found in src/thirdparty/immutable.js - About 1 hr to fix

                    Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function ajaxHandleResponses( s, jqXHR, responses ) {
                    
                        var ct, type, finalDataType, firstDataType,
                            contents = s.contents,
                            dataTypes = s.dataTypes;
                    Severity: Minor
                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                      Function getDocumentForPath has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function getDocumentForPath(fullPath, fileObj) {
                              var doc = getOpenDocumentForPath(fullPath);
                      
                              if (doc) {
                                  // use existing document
                      Severity: Minor
                      Found in src/document/DocumentManager.js - About 1 hr to fix

                        Function prioritizeOpenFile has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            SearchModel.prototype.prioritizeOpenFile = function (firstFile) {
                                var workingSetFiles = MainViewManager.getWorkingSet(MainViewManager.ALL_PANES),
                                    workingSetFileFound = {},
                                    fileSetWithoutWorkingSet = [],
                                    startingWorkingFileSet = [],
                        Severity: Minor
                        Found in src/search/SearchModel.js - About 1 hr to fix

                          Function doSearch has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function doSearch(searchObject, nextPages) {
                          
                              savedSearchObject = searchObject;
                              if (!files) {
                                  console.log("no file object found");
                          Severity: Minor
                          Found in src/search/node/FindInFilesDomain.js - About 1 hr to fix

                            Function _openInlineWidget has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function _openInlineWidget(editor, providers, defaultErrorMsg) {
                                    PerfUtils.markStart(PerfUtils.INLINE_WIDGET_OPEN);
                            
                                    // Run through inline-editor providers until one responds
                                    var pos = editor.getCursorPos(),
                            Severity: Minor
                            Found in src/editor/EditorManager.js - About 1 hr to fix

                              Function formatParameterHint has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function formatParameterHint(params, appendSeparators, appendParameter, typesOnly) {
                                      var result = "",
                                          pendingOptional = false;
                              
                                      params.forEach(function (value, i) {
                              Severity: Minor
                              Found in src/JSUtils/node/TernNodeDomain.js - About 1 hr to fix

                                Function _mapKeycodeToKey has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _mapKeycodeToKey(keycode, key) {
                                        // If keycode represents one of the digit keys (0-9), then return the corresponding digit
                                        // by subtracting KeyEvent.DOM_VK_0 from keycode. ie. [48-57] --> [0-9]
                                        if (keycode >= KeyEvent.DOM_VK_0 && keycode <= KeyEvent.DOM_VK_9) {
                                            return String(keycode - KeyEvent.DOM_VK_0);
                                Severity: Minor
                                Found in src/command/KeyBindingManager.js - About 1 hr to fix

                                  Function formatParameterHint has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function formatParameterHint(params, appendSeparators, appendParameter, typesOnly) {
                                          var result = "",
                                              pendingOptional = false;
                                  
                                          params.forEach(function (value, i) {
                                  Severity: Minor
                                  Found in src/extensions/default/JavaScriptCodeHints/HintUtils2.js - About 1 hr to fix

                                    Function rewrite has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function rewrite(req, res, next) {
                                            var location = {pathname: parse(req).pathname},
                                                hasListener = _rewritePaths[pathKey] && _rewritePaths[pathKey][location.pathname],
                                                requestId = _filterRequestCounter++,
                                                timeoutId;
                                    Severity: Minor
                                    Found in src/extensions/default/StaticServer/node/StaticServerDomain.js - About 1 hr to fix

                                      Function getParameterHints has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          JSParameterHintsProvider.prototype.getParameterHints = function (explicit, onCursorActivity) {
                                              var functionInfo = this.session.getFunctionInfo(),
                                                  result = null;
                                      
                                              if (!onCursorActivity) {

                                        Function _getParameterHint has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            JSParameterHintsProvider.prototype._getParameterHint = function (pushExistingHint, hint, functionInfo) {
                                                var result = $.Deferred();
                                                functionInfo = functionInfo || this.session.getFunctionInfo();
                                                if (!functionInfo.inFunctionCall) {
                                                    this.cleanHintState();
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language