adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

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

function init(domainManager) {
    if (!domainManager.hasDomain(domainName)) {
        domainManager.registerDomain(domainName, {
            major: 0,
            minor: 1
Severity: Minor
Found in src/languageTools/node/RegisterLanguageClientInfo.js - About 1 hr to fix

    Function setSelectedIndex has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        MultiRangeInlineEditor.prototype.setSelectedIndex = function (index, force) {
            var newIndex = Math.min(Math.max(-1, index), this._ranges.length - 1),
                self = this;
    
            if (!force && newIndex !== -1 && newIndex === this._selectedRangeIndex) {
    Severity: Minor
    Found in src/editor/MultiRangeInlineEditor.js - About 1 hr to fix

      Function _getValidStepsParams has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _getValidStepsParams(match) {
              var param,
                  def = [ "5", "end" ],
                  params = def,
                  oldIndex = match.index, // we need to store the old match.index to re-set the index afterwards

        Function registerToolingProviders has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function registerToolingProviders() {
                chProvider = new CodeHintsProvider(_client),
                phProvider = new DefaultProviders.ParameterHintsProvider(_client),
                lProvider = new DefaultProviders.LintingProvider(_client),
                jdProvider = new DefaultProviders.JumpToDefProvider(_client);
        Severity: Minor
        Found in src/extensions/default/PhpTooling/main.js - About 1 hr to fix

          Function plot has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  plot: function (settings) {
                      var setting, i, j, last, interval,
                          sp = this.stepParams,
                          isStart = (sp.timing === "start"),
                          p = [];
          Severity: Minor
          Found in src/extensions/default/InlineTimingFunctionEditor/StepEditor.js - About 1 hr to fix

            Function _contactContainers has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _contactContainers: function(event) {
            
                    // get innermost container that intersects with item
                    var innermostContainer = null, innermostIndex = null;
            
            

              Function _setOption has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _setOption: function( key, value ) {
                      var i,
                          valsLength = 0;
              
                      if ( $.isArray( this.options.values ) ) {

                Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    val: function( value ) {
                        var hooks, ret, isFunction,
                            elem = this[0];
                
                        if ( !arguments.length ) {

                  Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                          var origFn, type;
                  
                          // Types can be a map of types/handlers
                          if ( typeof types === "object" ) {

                    Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    jQuery.extend = jQuery.fn.extend = function() {
                        var options, name, src, copy, copyIsArray, clone,
                            target = arguments[0] || {},
                            i = 1,
                            length = arguments.length,

                      Function _openPrefFilesInSplitView has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _openPrefFilesInSplitView(prefsPath, defaultPrefsPath, deferredPromise) {
                      
                              var currScheme         = MainViewManager.getLayoutScheme(),
                                  file               = FileSystem.getFileForPath(prefsPath),
                                  defaultPrefsFile   = FileSystem.getFileForPath(defaultPrefsPath),
                      Severity: Minor
                      Found in src/extensions/default/DebugCommands/main.js - About 1 hr to fix

                        Function processLine has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function processLine(line) {
                                if (line === "") {
                                    return;
                                }
                        
                        
                        Severity: Minor
                        Found in src/filesystem/impls/appshell/node/CSharpWatcher.js - About 1 hr to fix

                          Function open has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              DropdownEventHandler.prototype.open = function () {
                                  var self = this;
                          
                                  /**
                                   * Convert keydown events into hint list navigation actions.
                          Severity: Minor
                          Found in src/utils/DropdownEventHandler.js - About 1 hr to fix

                            Function getDirNamesForDuplicateFiles has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function getDirNamesForDuplicateFiles(files) {
                                    // Must have at least two files in list for this to make sense
                                    if (files.length <= 1) {
                                        return [];
                                    }
                            Severity: Minor
                            Found in src/utils/ViewUtils.js - About 1 hr to fix

                              Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              jQuery.extend = jQuery.fn.extend = function() {
                                  var options, name, src, copy, copyIsArray, clone,
                                      target = arguments[0] || {},
                                      i = 1,
                                      length = arguments.length,
                              Severity: Minor
                              Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                        var origFn, type;
                                
                                        // Types can be a map of types/handlers
                                        if ( typeof types === "object" ) {
                                Severity: Minor
                                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                  Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      val: function( value ) {
                                          var hooks, ret, isFunction,
                                              elem = this[0];
                                  
                                          if ( !arguments.length ) {
                                  Severity: Minor
                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                    Function stop has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        stop: function( type, clearQueue, gotoEnd ) {
                                            var stopQueue = function( hooks ) {
                                                var stop = hooks.stop;
                                                delete hooks.stop;
                                                stop( gotoEnd );
                                    Severity: Minor
                                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                      Function hash has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function hash(o) {
                                          if (o === false || o === null || o === undefined) {
                                            return 0;
                                          }
                                          if (typeof o.valueOf === 'function') {
                                      Severity: Minor
                                      Found in src/thirdparty/immutable.js - About 1 hr to fix

                                        Function updateOrderedMap has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function updateOrderedMap(omap, k, v) {
                                            var map = omap._map;
                                            var list = omap._list;
                                            var i = map.get(k);
                                            var has = i !== undefined;
                                        Severity: Minor
                                        Found in src/thirdparty/immutable.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language