adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

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

    function restoreLineFolds(editor) {
        /**
         * Checks if the range from and to Pos is the same as the selection start and end Pos
         * @param   {Object}  range     {from, to} where from and to are CodeMirror.Pos objects
         * @param   {Object}  selection {start, end} where start and end are CodeMirror.Pos objects
Severity: Minor
Found in src/extensions/default/CodeFolding/main.js - About 1 hr to fix

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

        function _handleListEvents() {
            $dropdown
                .on("click", "a", function () {
                    var $link = $(this),
                        id    = $link.attr("id"),
    Severity: Minor
    Found in src/extensions/default/RecentProjects/main.js - About 1 hr to fix

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

          _eventHandler: function( event ) {
              var options = this.options,
                  active = this.active,
                  clicked = $( event.currentTarget ),
                  clickedIsActive = clicked[ 0 ] === active[ 0 ],

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

        module.exports = function( grunt ) {
        
        grunt.registerTask( "testswarm", function( commit, configFile ) {
            var test,
                testswarm = require( "testswarm" ),

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

              refresh: function() {
                  var maxHeight, overflow,
                      heightStyle = this.options.heightStyle,
                      parent = this.element.parent();
          
          

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

                setup: function() {
                    if ( this.module !== config.previousModule ) {
                        if ( config.previousModule ) {
                            runLoggingCallbacks( "moduleDone", QUnit, {
                                name: config.previousModule,

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

                  init: function() {
                      extend( config, {
                          stats: { all: 0, bad: 0 },
                          moduleStats: { all: 0, bad: 0 },
                          started: +new Date(),

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

                    function attachHandlers() {
                
                        function handleDragOver(event) {
                            event = event.originalEvent || event;
                
                
                Severity: Minor
                Found in src/utils/DragAndDrop.js - About 1 hr to fix

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

                    function filterFactory(iterable, predicate, context, useKeys) {
                      var filterSequence = makeSequence(iterable);
                      if (useKeys) {
                        filterSequence.has = function(key ) {
                          var v = iterable.get(key, NOT_SET);
                  Severity: Minor
                  Found in src/thirdparty/immutable.js - About 1 hr to fix

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

                      function concatFactory(iterable, values) {
                        var isKeyedIterable = isKeyed(iterable);
                        var iters = [iterable].concat(values).map(function(v ) {
                          if (!isIterable(v)) {
                            v = isKeyedIterable ?
                    Severity: Minor
                    Found in src/thirdparty/immutable.js - About 1 hr to fix

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

                        module.exports = function (grunt) {
                            var common  = require("./lib/common")(grunt),
                                build   = require("./build")(grunt);
                        
                            // task: write-config
                        Severity: Minor
                        Found in tasks/write-config.js - About 1 hr to fix

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

                              function _updateTitle() {
                                  var currentDoc          = DocumentManager.getCurrentDocument(),
                                      windowTitle         = brackets.config.app_title,
                                      currentlyViewedFile = MainViewManager.getCurrentlyViewedFile(MainViewManager.ACTIVE_PANE),
                                      currentlyViewedPath = currentlyViewedFile && currentlyViewedFile.fullPath,
                          Severity: Minor
                          Found in src/document/DocumentCommandHandlers.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 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 _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 _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 _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 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
                                          Category
                                          Status
                                          Source
                                          Language