dsd-meetme/frontend

View on GitHub

Showing 58 of 132 total issues

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

    var controller = function ($scope, $location, dataPublisher, mixedContentToArray, configService) {
        /*This controller instance */
        var apiDomain = configService.apiDomain;
        var c = this;
        var authorizationPopup = {
Severity: Minor
Found in app/components/organization/signIn/osiController.js - About 1 hr to fix

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

        var controller = function ($scope, $routeParams, $location, mixedContentToArray, configService, dataPublisher) {
    
            var apiDomain = configService.apiDomain;
            var c = this;
            c.errors = [];
    Severity: Minor
    Found in app/components/organization/recovery/orstController.js - About 1 hr to fix

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

              c.submit = function () {
                  var form = $scope.meetingInfoForm;
                  var events;
                  if (!c.showEmptyState) {
                      events = calendar.fullCalendar('clientEvents');
      Severity: Minor
      Found in app/components/user/meeting/nmController.js - About 1 hr to fix

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

            var controller = function ($scope, dataPublisher, mixedContentToArray, configService) {
                var apiDomain = configService.apiDomain;
                var c = this;
                c.errors = [];
                c.success = false;
        Severity: Minor
        Found in app/components/user/recovery/urecController.js - About 1 hr to fix

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

              var controller = function ($scope, dataPublisher, mixedContentToArray, configService) {
          
                  var apiDomain = configService.apiDomain;
                  var c = this;
                  c.errors = [];
          Severity: Minor
          Found in app/components/organization/recovery/orecController.js - About 1 hr to fix

            Function service has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var service = function ($resource, configService) {
            
                    var apiDomain = configService.apiDomain;
            
                    var orgUser = $resource(apiDomain + '/companies/employees/:userId', null, {
            Severity: Minor
            Found in app/shared/resources/orgResources.js - About 1 hr to fix

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

                          submit: function () {
                              var toSend;
                              var form = $scope.opC_profile_form;
                              this.invalidFields.passwordLength = form.password.$error.minlength;
                              this.invalidFields.passwordMatch = c.dataCopy.password !== c.dataCopy.password_confirmation;
              Severity: Minor
              Found in app/components/organization/profile/opController.js - About 1 hr to fix

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

                            submit: function () {
                                var toSend;
                                var form = $scope.upC_profile_form;
                                this.invalidFields.passwordLength = form.password.$error.minlength;
                                this.invalidFields.passwordMatch = c.dataCopy.password !== c.dataCopy.password_confirmation;
                Severity: Minor
                Found in app/components/user/profile/upController.js - About 1 hr to fix

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

                              submit: function () {
                  
                                  if (this.calendars.length === 0) {
                                      this.errors.push('Before importing a schedule select it after having pressed get schedules')
                                  }
                  Severity: Minor
                  Found in app/components/user/dashboard/udashController.js - About 1 hr to fix

                    Function service has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var service = function () {
                    
                            var process = function (object, container, clearContainerBefore) {
                                function InvalidArgumentException(msg, argumentIndex) {
                                    this.message = msg;
                    Severity: Minor
                    Found in app/shared/utils/mixedContentToArray.js - About 1 hr to fix

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

                              c.login = function () {
                                  var remember;
                                  //Processes the submit of usiForm (organization sign in)
                                  var form = $scope.usiForm;
                                  c.errors = [];
                      Severity: Minor
                      Found in app/components/user/signIn/usiController.js - About 1 hr to fix

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

                                var saveMeetingTimeslots = function (meetingId, events, redirect, showPopupCondition, isUpdate) {
                                    var counter = 0;
                                    var groupId;
                                    if (isUpdate){
                                        groupId = c.groupId;
                        Severity: Minor
                        Found in app/components/user/meeting/nmController.js - About 1 hr to fix

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

                                  c.reset = function () {
                                      var form = $scope.resetForm;
                                      c.errors = [];
                                      c.invalidFields.emailReq = form.email.$error.required;
                                      c.invalidFields.emailVal = form.email.$error.email;
                          Severity: Minor
                          Found in app/components/user/recovery/urstController.js - About 1 hr to fix

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

                                        submit: function () {
                                            var form = $scope.addUserForm;
                                            //Checks the validity of input fields
                                            this.invalidFields.nameReq = form.name.$error.required;
                                            this.invalidFields.emailReq = form.email.$error.required;
                            Severity: Minor
                            Found in app/components/organization/dashboard/odashController.js - About 1 hr to fix

                              Function process has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      c.process = function () {
                                          var form = $scope.regForm;
                                          c.errors = [];
                                          //Validity status of input fields checking
                                          c.invalidFields.passwordReq = form.password.$error.required;
                              Severity: Minor
                              Found in app/components/organization/registration/regController.js - About 1 hr to fix

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

                                            submit: function () {
                                                var toSend = {};
                                                var form = $scope.editForm;
                                                //Checks the validity status of input fields
                                                this.invalidFields.emailVal = form.email.$error.email;
                                Severity: Minor
                                Found in app/components/organization/user/userController.js - About 1 hr to fix

                                  Function change has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              change: function () {
                                                  var validMembers = [];
                                                  angular.forEach(this.members, function (value, key) {
                                                      if (value === true) {
                                                          validMembers.push(key.toString());
                                  Severity: Minor
                                  Found in app/components/organization/group/groupController.js - About 1 hr to fix

                                    Function login has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            c.login = function () {
                                                var remember;
                                                //Processes the submit of usiForm (organization sign in)
                                                var form = $scope.signInForm;
                                                //Checks the validity status of input fields
                                    Severity: Minor
                                    Found in app/components/organization/signIn/osiController.js - About 1 hr to fix

                                      Function updateMeeting has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              var updateMeeting = function (events) {
                                                  var alsoEditedEvents = false;
                                                  var newEvents = backendEventAdapter(checkNewEvents(events), true);
                                                  var modifiedEvents = backendEventAdapter(changedEvents, false);
                                                  console.log(newEvents);
                                      Severity: Minor
                                      Found in app/components/user/meeting/nmController.js - About 1 hr to fix

                                        Function exports has 28 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language