peyao/iReceptionist

View on GitHub

Showing 48 of 187 total issues

File bootstrap.js has 1587 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Bootstrap v3.3.6 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under the MIT license
 */
Severity: Major
Found in client/marketing/js/bootstrap.js - About 4 days to fix

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

          init : function( options ) {
    
            var settings = $.extend(true, {}, defaults);
    
            settings.options = $.extend(true, settings.options, options);
    Severity: Major
    Found in client/marketing/js/jqBootstrapValidation.js - About 1 day to fix

      File jqBootstrapValidation.js has 731 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* jqBootstrapValidation
       * A plugin for automating validation on Twitter Bootstrap formatted forms.
       *
       * v1.3.6
       *
      Severity: Major
      Found in client/marketing/js/jqBootstrapValidation.js - About 1 day to fix

        File vip_dashboard.js has 480 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * @ngdoc function
         * @name iReceptionistApp.controller:MainCtrl
         * @description
         * # MainCtrl
        Severity: Minor
        Found in client/vip/scripts/controllers/vip_dashboard.js - About 7 hrs to fix

          File register.js has 312 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * @ngdoc function
           * @name iReceptionistApp.controller:RegisterCtrl
           * @description
           * # RegisterCtrl
          Severity: Minor
          Found in client/auth/scripts/controllers/register.js - About 3 hrs to fix

            Function sortBy has 72 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                $scope.sortBy = function(category) {
                    switch(category) {
                        case 'name':
                            if ($scope.lastSort==='name') {
                                $scope.clients.reverse();
            Severity: Major
            Found in client/vip/scripts/controllers/vip_dashboard.js - About 2 hrs to fix

              Function plotNewData has 60 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  $scope.plotNewData = function(whichData) {
                          var dataMonths = [[1, 'Jan'], [2, 'Feb'], [3, 'Mar'], [4, 'Apr'], [5, 'May'], [6, 'Jun'], [7, 'Jul'], [8, 'Aug'], [9, 'Sep'], [10, 'Oct'], [11, 'Nov'], [12, 'Dec']];
                          var dataToPlot = [];
                          var updateData = function(whichData) {
                              // hard coded for now until get routes from backend
              Severity: Major
              Found in client/vip/scripts/controllers/vip_dashboard.js - About 2 hrs to fix

                Function getPlotData has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $scope.getPlotData = function() {
                        var freeDict = {};
                        var basicDict = {};
                        var premierDict = {};
                        
                Severity: Major
                Found in client/vip/scripts/controllers/vip_dashboard.js - About 2 hrs to fix

                  Function show has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    Tooltip.prototype.show = function () {
                      var e = $.Event('show.bs.' + this.type)
                  
                      if (this.hasContent() && this.enabled) {
                        this.$element.trigger(e)
                  Severity: Major
                  Found in client/marketing/js/bootstrap.js - About 2 hrs to fix

                    Function continue has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $scope.continue = function() {
                            //initally show all clients
                            $scope.clientsToShow=$scope.clients;
                            
                            //initialize dates/suspended
                    Severity: Minor
                    Found in client/vip/scripts/controllers/vip_dashboard.js - About 1 hr to fix

                      Function updatePlan has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              $scope.updatePlan = function() {
                                  // Credit card validation
                                  if ($scope.planClicked !== 'Free') {
                                      var nameValid = $scope.name !== "";
                                      var cardValid = $.payment.validateCardNumber($scope.card);
                      Severity: Minor
                      Found in client/app/scripts/controllers/settings_billing.js - About 1 hr to fix

                        Function slide has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          Carousel.prototype.slide = function (type, next) {
                            var $active   = this.$element.find('.item.active')
                            var $next     = next || this.getItemForDirection(type, $active)
                            var isCycling = this.interval
                            var direction = type == 'next' ? 'left' : 'right'
                        Severity: Minor
                        Found in client/marketing/js/bootstrap.js - About 1 hr to fix

                          Function doLogin has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  $scope.doLogin = function() {
                                      AuthenticationService.login(
                                          {
                                              'email': $scope.register.step1.email,
                                              'password': $scope.register.step1.password,
                          Severity: Minor
                          Found in client/auth/scripts/controllers/register.js - About 1 hr to fix

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

                            module.exports = function(config) {
                                config.set({
                            
                                    // base path that will be used to resolve all patterns (eg. files, exclude)
                                    basePath: '',
                            Severity: Minor
                            Found in karma.conf.js - About 1 hr to fix

                              Function show has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                Modal.prototype.show = function (_relatedTarget) {
                                  var that = this
                                  var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
                              
                                  this.$element.trigger(e)
                              Severity: Minor
                              Found in client/marketing/js/bootstrap.js - About 1 hr to fix

                                Function backdrop has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  Modal.prototype.backdrop = function (callback) {
                                    var that = this
                                    var animate = this.$element.hasClass('fade') ? 'fade' : ''
                                
                                    if (this.isShown && this.options.backdrop) {
                                Severity: Minor
                                Found in client/marketing/js/bootstrap.js - About 1 hr to fix

                                  Function doLogin has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      $scope.doLogin = function() {
                                          AuthenticationService.login(
                                              {
                                                  'email': $scope.email,
                                                  'password': $scope.password,
                                  Severity: Minor
                                  Found in client/auth/scripts/controllers/login.js - About 1 hr to fix

                                    Function activate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      Tab.prototype.activate = function (element, container, callback) {
                                        var $active    = container.find('> .active')
                                        var transition = callback
                                          && $.support.transition
                                          && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
                                    Severity: Minor
                                    Found in client/marketing/js/bootstrap.js - About 1 hr to fix

                                      Function submitSuccess has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              submitSuccess: function($form, event) {
                                                  event.preventDefault(); // prevent default submit behaviour
                                                  // get values from FORM
                                                  var name = $("input#name").val();
                                                  var email = $("input#email").val();
                                      Severity: Minor
                                      Found in client/marketing/js/contact_me.js - About 1 hr to fix

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

                                                validate: function ($this, value, validator) {
                                                  if (""+validator.lastValue === ""+value && validator.lastFinished === true) {
                                                    return validator.lastValid === false;
                                                  }
                                        
                                        
                                        Severity: Minor
                                        Found in client/marketing/js/jqBootstrapValidation.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language