dsd-meetme/frontend

View on GitHub

Showing 58 of 132 total issues

Function controller has 445 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var controller = function ($scope, dataPublisher, mixedContentToArray, userResources, plannerResources, configService, objectResetFields) {

        /*
         Gets the meetings relative to a given group.
         These meetings are stored in the meetings properties of the given group.
Severity: Major
Found in app/components/user/dashboard/udashController.js - About 2 days to fix

    Function controller has 415 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var controller = function (userResources, plannerResources, mixedContentToArray, $scope, $location, $routeParams) {
    
            var mode = 'c';
            var c = this;
            var changedEvents = [];
    Severity: Major
    Found in app/components/user/meeting/nmController.js - About 2 days to fix

      Function controller has 305 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var controller = function ($routeParams, $location, mixedContentToArray, orgResources, arrayToUrlParams) {
      
              var c = this;
              //group id
              var id = $routeParams.id;
      Severity: Major
      Found in app/components/organization/group/groupController.js - About 1 day to fix

        Function controller has 274 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var controller = function (userResources, mixedContentToArray, $routeParams, $scope, $location) {
        
                var calendar;
                var mode = 1;
                var changedEvents = [];
        Severity: Major
        Found in app/components/user/composeSchedule/cschedController.js - About 1 day to fix

          Function controller has 233 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var controller = function ($scope, orgResources, arrayToUrlParams, mixedContentToArray) {
          
                  var c = this;
          
                  var getUsers = function () {
          Severity: Major
          Found in app/components/organization/dashboard/odashController.js - About 1 day to fix

            File udashController.js has 451 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            (function () {
            
                var controller = function ($scope, dataPublisher, mixedContentToArray, userResources, plannerResources, configService, objectResetFields) {
            
                    /*
            Severity: Minor
            Found in app/components/user/dashboard/udashController.js - About 6 hrs to fix

              File nmController.js has 421 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              (function () {
              
                  var controller = function (userResources, plannerResources, mixedContentToArray, $scope, $location, $routeParams) {
              
                      var mode = 'c';
              Severity: Minor
              Found in app/components/user/meeting/nmController.js - About 6 hrs to fix

                Function saveSchedule has 110 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        c.saveSchedule = function () {
                            var newEvents, modifiedEvents = [];
                            var alsoEditEvents = false;
                            var events = calendar.fullCalendar('clientEvents');
                            var processedEvents = [];
                Severity: Major
                Found in app/components/user/composeSchedule/cschedController.js - About 4 hrs to fix

                  Function controller has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      var controller = function ($scope, $routeParams, $location, mixedContentToArray, orgResources) {
                          var c = this;
                          //user id
                          var id = $routeParams.id;
                          var emptyInvalidFields = function (invalidFields) {
                  Severity: Major
                  Found in app/components/organization/user/userController.js - About 4 hrs to fix

                    Function $get has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        this.$get = ['$injector', '$document', '$timeout', '$rootScope', function ($injector, $document, $timeout, $rootScope) {
                          var $animate;
                          var $parentSelector = this.parentSelector,
                            loadingBarContainer = angular.element(this.loadingBarTemplate),
                            loadingBar = loadingBarContainer.find('div').eq(0),
                    Severity: Major
                    Found in assets/js/loading-bar.js - About 3 hrs to fix

                      Function controller has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          var controller = function ($scope, userResources, mixedContentToArray) {
                      
                              var c = this;
                      
                              c.data = {
                      Severity: Major
                      Found in app/components/user/profile/upController.js - About 3 hrs to fix

                        File groupController.js has 311 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        (function () {
                        
                            var controller = function ($routeParams, $location, mixedContentToArray, orgResources, arrayToUrlParams) {
                        
                                var c = this;
                        Severity: Minor
                        Found in app/components/organization/group/groupController.js - About 3 hrs to fix

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

                              var controller = function ($scope, orgResources, mixedContentToArray) {
                          
                                  var c = this;
                          
                                  c.data = {
                          Severity: Major
                          Found in app/components/organization/profile/opController.js - About 3 hrs to fix

                            Function interceptor has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                var interceptor = ['$q', '$cacheFactory', '$timeout', '$rootScope', '$log', 'cfpLoadingBar', function ($q, $cacheFactory, $timeout, $rootScope, $log, cfpLoadingBar) {
                            
                                  /**
                                   * The total number of requests made
                                   */
                            Severity: Major
                            Found in assets/js/loading-bar.js - About 3 hrs to fix

                              File cschedController.js has 280 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              (function () {
                              
                                  var controller = function (userResources, mixedContentToArray, $routeParams, $scope, $location) {
                              
                                      var calendar;
                              Severity: Minor
                              Found in app/components/user/composeSchedule/cschedController.js - About 2 hrs to fix

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

                                            submit: function () {
                                                var form = $scope.editScheduleForm;
                                                this.invalidFields.nameReq = form.name.$error.required;
                                                this.invalidFields.urlReq = form.url.$error.required;
                                                this.invalidFields.urlVal = form.url.$error.url;
                                Severity: Major
                                Found in app/components/user/dashboard/udashController.js - About 2 hrs to fix

                                  Function controller has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var controller = function ($scope, $routeParams, dataPublisher, mixedContentToArray, configService) {
                                          var apiDomain = configService.apiDomain;
                                          var c = this;
                                          c.success = false;
                                          c.invalidFields = {
                                  Severity: Major
                                  Found in app/components/user/recovery/urstController.js - About 2 hrs to fix

                                    Function controller has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        var controller = function ($scope, $location, dataPublisher, mixedContentToArray, configService) {
                                            var apiDomain = configService.apiDomain;
                                            var c = this;
                                            //In case of account already registered, sets a property to true so that
                                            //an error can be displayed on the view
                                    Severity: Major
                                    Found in app/components/organization/registration/regController.js - About 2 hrs to fix

                                      Function controller has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var controller = function ($scope, $location, dataPublisher, mixedContentToArray, configService) {
                                              var apiDomain = configService.apiDomain;
                                              var c = this;
                                              var authorizationPopup = {
                                                  show: function () {
                                      Severity: Minor
                                      Found in app/components/user/signIn/usiController.js - About 2 hrs to fix

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

                                                    submit: function () {
                                                        var validMembers = [];
                                                        var validationStatus;
                                                        angular.forEach(this.members, function (value, key) {
                                                            if (value === true) {
                                        Severity: Minor
                                        Found in app/components/organization/dashboard/odashController.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language