adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Function _send has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _send(method, signature, varargs) {
        if (!_socket) {
            console.log("You must connect to the WebSocket before sending messages.");

            // FUTURE: Our current implementation closes and re-opens an inspector connection whenever
Severity: Minor
Found in src/LiveDevelopment/Inspector/Inspector.js - About 1 hr to fix

    Function formatHints has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function formatHints(hints, query) {
    
            var hasMetadata = hints.some(function (token) {
                return token.type || token.description;
            });
    Severity: Minor
    Found in src/extensions/default/PrefsCodeHints/main.js - About 1 hr to fix

      Function readyToServe has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          StaticServer.prototype.readyToServe = function () {
              var self = this;
              var deferred = new $.Deferred();
      
              function sanitizePort(port) {
      Severity: Minor
      Found in src/extensions/default/StaticServer/StaticServer.js - About 1 hr to fix

        Function _updateProcessHandler has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function _updateProcessHandler(updates) {
        
                    if (!updates) {
                        console.warn("AutoUpdate : updates information not available.");
                        return;
        Severity: Minor
        Found in src/extensions/default/AutoUpdate/main.js - About 1 hr to fix

          Function BezierCurveEditor has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function BezierCurveEditor($parent, bezierCurve, callback) {
                  // Create the DOM structure, filling in localized strings via Mustache
                  this.$element = $(Mustache.render(BezierCurveEditorTemplate, Strings));
                  $parent.append(this.$element);
          
          

            Function indentFold has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function indentFold(cm, start) {
                    var lineText = cm.getLine(start.line), tabSize = cm.getOption("tabSize");
            
                    var lineIndent = cols(lineText, null, tabSize), collapsible = false, lineCount = cm.lineCount();
                    var token = cm.getTokenAt(pos(start.line, lineIndent + 1));
            Severity: Minor
            Found in src/extensions/default/CodeFolding/foldhelpers/indentFold.js - About 1 hr to fix

              Function getCurrentRange has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  InlineTimingFunctionEditor.prototype.getCurrentRange = function () {
                      var start, end;
              
                      start = this._startBookmark.find();
                      if (!start) {

                Function _attachHandlers has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _attachHandlers: function(inst) {
                        var stepMonths = this._get(inst, 'stepMonths');
                        var id = '#' + inst.id;
                        inst.dpDiv.find('[data-handler]').map(function () {
                            var handler = {

                  Function _hideDatepicker has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _hideDatepicker: function(input) {
                          var inst = this._curInst;
                          if (!inst || (input && inst != $.data(input, PROP_NAME)))
                              return;
                          if (this._datepickerShowing) {

                    Function _possibleChars has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _possibleChars: function (format) {
                            var chars = '';
                            var literal = false;
                            // Check whether a format character is doubled
                            var lookAhead = function(match) {

                      Function offsetString has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              var offsetString = function(offset) {
                                  try {
                                      return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),
                                          offset, $.datepicker._getFormatConfig(inst));
                                  }

                        Function handlePointMove has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function handlePointMove(e, x, y) {
                                var self = e.target,
                                    bezierEditor = self.bezierEditor;
                        
                                // Helper function to redraw curve

                          Function serverOptions has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var serverOptions = function () {
                                  return new Promise(function (resolve, reject) {
                                      var server = net.createServer(function (socket) {
                                          console.log('PHP process connected');
                                          socket.on('end', function () {
                          Severity: Minor
                          Found in src/extensions/default/PhpTooling/client.js - About 1 hr to fix

                            Function _createButtons has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _createButtons: function( buttons ) {
                                    var uiDialogButtonPane, uiButtonSet,
                                        that = this,
                                        hasButtons = false;
                            
                            

                              Function _makeDraggable has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _makeDraggable: function() {
                                      var that = this,
                                          options = this.options;
                              
                                      function filteredUi( ui ) {

                                Function option has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    option: function( key, value ) {
                                        var options = key,
                                            parts,
                                            curOption,
                                            i;

                                  Function create has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      create: function( dialog ) {
                                          if ( this.instances.length === 0 ) {
                                              // prevent use of anchors and inputs
                                              // we use a setTimeout in case the overlay is created from an
                                              // event that we're going to be cancelling (see #2804)

                                    Function _refreshItems has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _refreshItems: function(event) {
                                    
                                            this.items = [];
                                            this.containers = [this];
                                            var items = this.items;

                                      Function cleanData has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          cleanData: function( elems ) {
                                              var data, id,
                                                  cache = jQuery.cache,
                                                  special = jQuery.event.special,
                                                  deleteExpando = jQuery.support.deleteExpando;

                                        Function object has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                        "object": function( b, a ) {
                                                            var i, j, loop,
                                                                // Default to true
                                                                eq = true,
                                                                aProperties = [],
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language