adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

File StaticServerDomain.js has 266 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright (c) 2012 - 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/StaticServer/node/StaticServerDomain.js - About 2 hrs to fix

    File ImageViewer.js has 265 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/editor/ImageViewer.js - About 2 hrs to fix

      Function explode has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      $.effects.effect.explode = function( o, done ) {
      
          var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
              cells = rows,
              el = $( this ),

        Function _formatPref has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function _formatPref(prefName,  prefItem, indentLevel) {
        
                // check for validity of the parameters being passed
                if (!prefItem || indentLevel < 0 || !prefName || !prefName.length) {
                    return "";
        Severity: Major
        Found in src/extensions/default/DebugCommands/main.js - About 2 hrs to fix

          Function _visitHelper has 59 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              FileSystemEntry.prototype._visitHelper = function (stats, visitedPaths, visitor, options, callback) {
                  var maxDepth = options.maxDepth,
                      maxEntriesCounter = options.maxEntriesCounter,
                      sortList = options.sortList;
          
          
          Severity: Major
          Found in src/filesystem/FileSystemEntry.js - About 2 hrs to fix

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

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

              Function showDialog has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function showDialog() {
                      var currentSettings = getValues();
                      var newSettings     = {};
                      var themes          = _.map(loadedThemes, function (theme) { return theme; });
                      var template        = $("<div>").append($settings).html();
              Severity: Major
              Found in src/view/ThemeSettings.js - About 2 hrs to fix

                Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        "CHILD": function( type, what, argument, first, last ) {
                            var simple = type.slice( 0, 3 ) !== "nth",
                                forward = type.slice( -4 ) !== "last",
                                ofType = what === "of-type";
                
                
                Severity: Major
                Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                  Function defineLanguage has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function defineLanguage(id, definition) {
                          var result = new $.Deferred();
                  
                          if (_pendingLanguages[id]) {
                              result.reject("Language \"" + id + "\" is waiting to be resolved.");
                  Severity: Major
                  Found in src/language/LanguageManager.js - About 2 hrs to fix

                    Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        Deferred: function( func ) {
                            var tuples = [
                                    // action, add listener, listener list, final state
                                    [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                    [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                    Severity: Major
                    Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                      Function _createReaderAndWriteByCommunicationType has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _createReaderAndWriteByCommunicationType(resp, type) {
                              var retval = null;
                      
                              switch (type) {
                                  case CommunicationTypes.NodeIPC.type:
                      Severity: Major
                      Found in src/languageTools/LanguageClient/ServerUtils.js - About 2 hrs to fix

                        File ExtensionManagerView.js has 264 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/extensibility/ExtensionManagerView.js - About 2 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                                                  if ( forward && useCache ) {
                                                      // Seek `elem` from a previously-cached index
                                                      outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                      cache = outerCache[ type ] || [];
                                                      nodeIndex = cache[0] === dirruns && cache[1];
                          Severity: Critical
                          Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

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

                            function init(domainManager) {
                                _domainManager = domainManager;
                                if (!domainManager.hasDomain("nodeSocketTransport")) {
                                    domainManager.registerDomain("nodeSocketTransport", {major: 0, minor: 1});
                                }

                              Function _pointKeyDown has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function _pointKeyDown(e) {
                                      var code = e.keyCode,
                                          self = e.target,
                                          bezierEditor = self.bezierEditor;
                              
                              

                                Function drag has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                function drag(e) {
                                                    if (!dragged) {
                                                        initDragging();
                                                        // sort redraw and scroll shadows
                                                        //  cause problems during drag so disable them
                                Severity: Major
                                Found in src/project/WorkingSetView.js - About 2 hrs to fix

                                  Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      domManip: function( args, callback ) {
                                  
                                          // Flatten any nested arrays
                                          args = concat.apply( [], args );
                                  
                                  
                                  Severity: Major
                                  Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                                    Function _updateResults has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _updateResults(doc, changeList) {
                                            var i, diff, matches, lines, start, howMany,
                                                resultsChanged = false,
                                                fullPath       = doc.file.fullPath,
                                                resultInfo     = searchModel.results[fullPath];
                                    Severity: Major
                                    Found in src/search/FindInFiles.js - About 2 hrs to fix

                                      Function validateRequestParams has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function validateRequestParams(type, params) {
                                              var validatedParams = null;
                                      
                                              params = params || {};
                                      
                                      
                                      Severity: Major
                                      Found in src/languageTools/LanguageClientWrapper.js - About 2 hrs to fix

                                        Function _expandWordAndAddNextToSelection has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _expandWordAndAddNextToSelection(editor, removePrimary) {
                                                editor = editor || EditorManager.getActiveEditor();
                                                if (!editor) {
                                                    return;
                                                }
                                        Severity: Major
                                        Found in src/search/FindReplace.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language