adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

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

    function download(url, downloadId) {
        return _extensionManagerCall(function (extensionManager) {
            var d = new $.Deferred();

            // Validate URL
Severity: Minor
Found in src/extensibility/Package.js - About 1 hr to fix

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

        function _call(objectId, method, varargs) {
            console.assert(objectId, "Attempted to call remote method without objectId set.");
            var args = Array.prototype.slice.call(arguments, 2),
                callback,
                deferred = new $.Deferred();
    Severity: Minor
    Found in src/LiveDevelopment/Agents/RemoteAgent.js - About 1 hr to fix

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

      function _createServer(socketPort) {
          if (!_wsServer) {
              // TODO: make port configurable, or use random port
              _wsServer = new WebSocketServer({port: socketPort});
              _wsServer.on("connection", function (ws) {
      Severity: Minor
      Found in src/LiveDevelopment/transports/node/WebSocketTransportDomain.js - About 1 hr to fix

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

            StateHandler.prototype.parse = function () {
                var result = $.Deferred(),
                    _file = FileSystem.getFileForPath(this.path);
                var self = this;
        
        
        Severity: Minor
        Found in src/extensions/default/AutoUpdate/StateHandler.js - About 1 hr to fix

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

              function parseInstallerLog(filepath, searchstring, encoding, callback) {
                  var line = "";
                  var searchFn = function searchFn(str) {
                      var arr = str.split('\n'),
                          lineNum,
          Severity: Minor
          Found in src/extensions/default/AutoUpdate/node/AutoUpdateDomain.js - About 1 hr to fix

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

                    var updateFn = function () {
                        var infoObj = {
                            installerPath: formattedInstallerPath,
                            logFilePath: formattedLogFilePath,
                            installStatusFilePath: installStatusFilePath
            Severity: Minor
            Found in src/extensions/default/AutoUpdate/main.js - About 1 hr to fix

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

                  function stepsMatch(str, lax) {
                      var match;
              
                      // First look for any steps().
                      match = str.match(STEPS_VALID_REGEX);

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

                    focus: function( event, item ) {
                        var nested, focused;
                        this.blur( event, event && event.type === "focus" );
                
                        this._scrollIntoView( item );

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

                          $.fn.position = function( options ) {
                              if ( !options || !options.offset ) {
                                  return _position.call( this, options );
                              }
                              var offset = options.offset.split( " " ),

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

                            fire = function( context, args ) {
                                args = args || [];
                                memory = !flags.memory || [ context, args ];
                                fired = true;
                                firing = true;

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

                                  typeOf: function( obj ) {
                                      var type;
                                      if ( obj === null ) {
                                          type = "null";
                                      } else if ( typeof obj === "undefined" ) {

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

                            queue: function() {
                                var bad,
                                    test = this;
                        
                                synchronize(function() {

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

                                  ">": function( checkSet, part ) {
                                      var elem,
                                          isPartStr = typeof part === "string",
                                          i = 0,
                                          l = checkSet.length;

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

                            jQuery.buildFragment = function( args, nodes, scripts ) {
                                var fragment, cacheable, cacheresults, doc,
                                first = args[ 0 ];
                            
                                // nodes may contain either an explicit document object,

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

                                  FileSystem.prototype._handleExternalChange = function (path, stat) {
                              
                                      if (!path) {
                                          // This is a "wholesale" change event; clear all caches
                                          this._index.visitAll(function (entry) {
                              Severity: Minor
                              Found in src/filesystem/FileSystem.js - About 1 hr to fix

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

                                    FileSystem.prototype._normalizePath = function (path, isDirectory) {
                                
                                        if (!FileSystem.isAbsolutePath(path)) {
                                            throw new Error("Paths must be absolute: '" + path + "'");  // expect only absolute paths
                                        }
                                Severity: Minor
                                Found in src/filesystem/FileSystem.js - About 1 hr to fix

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

                                      function _mapError(err) {
                                          if (!err) {
                                              return null;
                                          }
                                  
                                  
                                  Severity: Minor
                                  Found in src/filesystem/impls/appshell/AppshellFileSystem.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 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 _createPaneIfNecessary has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _createPaneIfNecessary(paneId) {
                                                var newPane;
                                        
                                                if (!_panes.hasOwnProperty(paneId)) {
                                                    newPane = new Pane(paneId, _$el);
                                        Severity: Minor
                                        Found in src/view/MainViewManager.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language