oliverbarnes/participate-api

View on GitHub

Showing 11 of 11 total issues

File phoenix.js has 770 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function(exports){
"use strict";

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

Severity: Major
Found in priv/static/js/phoenix.js - About 1 day to fix

    Function Socket has 251 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var Socket = exports.Socket = function () {
    
      // Initializes the Socket
      //
      // endPoint - The string WebSocket endpoint, ie, "ws://example.com/ws",
    Severity: Major
    Found in priv/static/js/phoenix.js - About 1 day to fix

      Function Channel has 168 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var Channel = exports.Channel = function () {
        function Channel(topic, params, socket) {
          var _this2 = this;
      
          _classCallCheck(this, Channel);
      Severity: Major
      Found in priv/static/js/phoenix.js - About 6 hrs to fix

        Function Push has 103 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var Push = function () {
        
          // Initializes the Push
          //
          // channel - The Channel
        Severity: Major
        Found in priv/static/js/phoenix.js - About 4 hrs to fix

          Function LongPoll has 95 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var LongPoll = exports.LongPoll = function () {
            function LongPoll(endPoint) {
              _classCallCheck(this, LongPoll);
          
              this.endPoint = null;
          Severity: Major
          Found in priv/static/js/phoenix.js - About 3 hrs to fix

            Function Ajax has 86 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var Ajax = exports.Ajax = function () {
              function Ajax() {
                _classCallCheck(this, Ajax);
              }
            
            
            Severity: Major
            Found in priv/static/js/phoenix.js - About 3 hrs to fix

              Function Channel has 43 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function Channel(topic, params, socket) {
                  var _this2 = this;
              
                  _classCallCheck(this, Channel);
              
              
              Severity: Minor
              Found in priv/static/js/phoenix.js - About 1 hr to fix

                Function poll has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    value: function poll() {
                      var _this8 = this;
                
                      if (!(this.readyState === SOCKET_STATES.open || this.readyState === SOCKET_STATES.connecting)) {
                        return;
                Severity: Minor
                Found in priv/static/js/phoenix.js - About 1 hr to fix

                  Function value has 8 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      value: function xhrRequest(req, method, endPoint, accept, body, timeout, ontimeout, callback) {
                  Severity: Major
                  Found in priv/static/js/phoenix.js - About 1 hr to fix

                    Function value has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        value: function request(method, endPoint, accept, body, timeout, ontimeout, callback) {
                    Severity: Major
                    Found in priv/static/js/phoenix.js - About 50 mins to fix

                      Function value has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          value: function xdomainRequest(req, method, endPoint, body, timeout, ontimeout, callback) {
                      Severity: Major
                      Found in priv/static/js/phoenix.js - About 50 mins to fix
                        Severity
                        Category
                        Status
                        Source
                        Language