adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

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 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 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 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 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 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 > 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 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 queue has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

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

                                        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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language