adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function render has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render: function () {
            var entry = this.props.entry,
                nodeClass,
                childNodes,
                children = entry.get("children"),
Severity: Major
Found in src/project/FileTreeView.js - About 2 hrs to fix

    Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
        if ( postFilter && !postFilter[ expando ] ) {
            postFilter = setMatcher( postFilter );
        }
        if ( postFinder && !postFinder[ expando ] ) {
    Severity: Major
    Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

      File main.js has 276 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * Copyright (c) 2015 - present Adobe Systems Incorporated. All rights reserved.
       *
       * Permission is hereby granted, free of charge, to any person obtaining a
       * copy of this software and associated documentation files (the "Software"),
      Severity: Minor
      Found in src/extensions/default/PrefsCodeHints/main.js - About 2 hrs to fix

        Function validateCallback has 65 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function validateCallback(err, validationResult) {
                validationResult.localPath = packagePath;
        
                // This is a wrapper for the callback that will delete the temporary
                // directory to which the package was unzipped.
        Severity: Major
        Found in src/extensibility/node/ExtensionManagerDomain.js - About 2 hrs to fix

          Function insertHint has 65 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              PrefsCodeHints.prototype.insertHint = function (completion) {
                  var ctxInfo = JSONUtils.getContextInfo(this.editor, this.editor.getCursorPos(), false, true),
                      pos     = this.editor.getCursorPos(),
                      start   = {line: -1, ch: -1},
                      end     = {line: -1, ch: -1},
          Severity: Major
          Found in src/extensions/default/PrefsCodeHints/main.js - About 2 hrs to fix

            Function CSSPreprocessorDocumentModule has 65 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            define(function CSSPreprocessorDocumentModule(require, exports, module) {
                "use strict";
            
                var _               = require("thirdparty/lodash"),
                    EventDispatcher = require("utils/EventDispatcher"),
            Severity: Major
            Found in src/LiveDevelopment/Documents/CSSPreprocessorDocument.js - About 2 hrs to fix

              Function init has 65 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  init: function( selector, context, rootjQuery ) {
                      var match, elem, ret, doc;
              
                      // Handle $(""), $(null), or $(undefined)
                      if ( !selector ) {

                Function _receive has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    NodeConnection.prototype._receive = function (message) {
                        var responseDeferred = null;
                        var data = message.data;
                        var m;
                
                
                Severity: Major
                Found in src/utils/NodeConnection.js - About 2 hrs to fix

                  File FindUtils.js has 275 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*
                   * Copyright (c) 2014 - present Adobe Systems Incorporated. All rights reserved.
                   *
                   * Permission is hereby granted, free of charge, to any person obtaining a
                   * copy of this software and associated documentation files (the "Software"),
                  Severity: Minor
                  Found in src/search/FindUtils.js - About 2 hrs to fix

                    Method writeDocument has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        def writeDocument
                            @out.write <<-eos
                    <!DOCTYPE html>
                    <html>
                    <head>
                    Severity: Major
                    Found in src/LiveDevelopment/Inspector/jsdoc.rb - About 2 hrs to fix

                      Function getParameterHint has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          Session.prototype.getParameterHint = function () {
                              var fnHint = this.fnType,
                                  cursor = this.getCursor(),
                                  token = this.getToken(this.functionCallPos),
                                  start = {line: this.functionCallPos.line, ch: token.start},
                      Severity: Major
                      Found in src/JSUtils/Session.js - About 2 hrs to fix

                        Function bounce has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        $.effects.effect.bounce = function( o, done ) {
                            var el = $( this ),
                                props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
                        
                                // defaults:

                          Function _getRuleInfoStartingFromPropValue has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function _getRuleInfoStartingFromPropValue(ctx, editorParam) {
                                  var editor      = editorParam._codeMirror || editorParam,
                                      contextDoc  = editor.document || editor.doc,
                                      propNamePos = $.extend({}, ctx.pos),
                                      backwardPos = $.extend({}, ctx.pos),
                          Severity: Major
                          Found in src/language/CSSUtils.js - About 2 hrs to fix

                            Function validatePackageJSON has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function validatePackageJSON(path, packageJSON, options, callback) {
                                var errors = [];
                                if (fs.existsSync(packageJSON)) {
                                    fs.readFile(packageJSON, {
                                        encoding: "utf8"
                            Severity: Major
                            Found in src/extensibility/node/package-validator.js - About 2 hrs to fix

                              Function doMultipleEdits has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  Document.prototype.doMultipleEdits = function (edits, origin) {
                                      var self = this;
                              
                                      // Sort the edits backwards, so we don't have to adjust the edit positions as we go along
                                      // (though we do have to adjust the selection positions).
                              Severity: Major
                              Found in src/document/Document.js - About 2 hrs to fix

                                Function _closeList has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _closeList(list, promptOnly, _forceClose) {
                                        var result      = new $.Deferred(),
                                            unsavedDocs = [];
                                
                                        list.forEach(function (file) {
                                Severity: Major
                                Found in src/document/DocumentCommandHandlers.js - About 2 hrs to fix

                                  Function _doSaveAfterSaveDialog has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          function _doSaveAfterSaveDialog(path) {
                                              var newFile;
                                  
                                              // Reconstruct old doc's editor's view state, & finally resolve overall promise
                                              function _configureEditorAndResolve() {
                                  Severity: Major
                                  Found in src/document/DocumentCommandHandlers.js - About 2 hrs to fix

                                    Function _finishReplaceBatch has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _finishReplaceBatch(model) {
                                            var replaceText = model.replaceText;
                                            if (replaceText === null) {
                                                return;
                                            }
                                    Severity: Major
                                    Found in src/search/FindInFilesUI.js - About 2 hrs to fix

                                      File main.js has 271 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      /*
                                       * Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
                                       *
                                       * Permission is hereby granted, free of charge, to any person obtaining a
                                       * copy of this software and associated documentation files (the "Software"),
                                      Severity: Minor
                                      Found in src/extensions/default/CSSCodeHints/main.js - About 2 hrs to fix

                                        Function _installUsingDragAndDrop has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _installUsingDragAndDrop() {
                                                var installZips = [],
                                                    updateZips = [],
                                                    deferred = new $.Deferred(),
                                                    validatePromise;
                                        Severity: Major
                                        Found in src/extensibility/ExtensionManagerDialog.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language