CleverStack/angular-seed

View on GitHub

Showing 36 of 114 total issues

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

/*!
 * Bootstrap v3.0.3 (http://getbootstrap.com)
 * Copyright 2013 Twitter, Inc.
 * Licensed under http://www.apache.org/licenses/LICENSE-2.0
 */
Severity: Major
Found in app/scripts/bootstrap.js - About 3 days to fix

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

            function( $rootScope, $location, $route, $injector, $log ) {
              var messenger = $injector.has( 'Messenger' ) ? $injector.get( 'Messenger' ) : $log;
    
              if ( !sessionService && sessionServiceName ) {
                sessionService = $injector.get( sessionServiceName );
    Severity: Major
    Found in app/modules/auth/providers/SessionProvider.js - About 1 day to fix

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

            $get: function( $injector, $rootScope, $timeout, $location ) {
              var Messenger           = $injector.has( 'Messenger' ) ? $injector.get( 'Messenger' ) : $injector.get( '$log' )
                , RoleService         = $injector.has( 'RoleService' ) ? $injector.get( 'RoleService' ) : false
                , PermissionService   = $injector.has( 'PermissionService' ) ? $injector.get( 'PermissionService' ) : false
                , UserService         = $injector.has( 'UserService' ) ? $injector.get( 'UserService' ) : false
      Severity: Major
      Found in app/modules/roles/providers/RoleHelpersProvider.js - About 1 day to fix

        File SessionProvider.js has 338 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        define( [ 'angular', '../module' ], function( ng ) {
          'use strict';
        
          /**
           * @ngdoc service
        Severity: Minor
        Found in app/modules/auth/providers/SessionProvider.js - About 4 hrs to fix

          Function link has 81 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                link: function ($scope, element) {
          
                  var alertClass, appMessage, alertType, icon, textWrapper, closeButton, closingPromise;
                  var allowedTypes = ['warning', 'error', 'success', 'info', 'loading'];
                  var defaultType = 'warning';
          Severity: Major
          Found in app/modules/cs_messenger/scripts/messenger_directive.js - About 3 hrs to fix

            Function Helpers has 67 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function  Helpers() {
            
                  var helpers = {};
                  var inheritedProviders = [];
            
            
            Severity: Major
            Found in app/modules/cs_common/providers/HelpersProvider.js - About 2 hrs to fix

              Function locationChange has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                        handlers.locationChange = handlers.locationChange || function( event, next ) {
                          next = '/' + next.split( '/' ).splice( 3 ).join( '/' ).split( '?' )[ 0 ];
                          if( next.length > 1 && next.substr(-1) === '/' ){
                            next = next.substr(0, next.length - 1);
                          }
              Severity: Major
              Found in app/modules/auth/providers/SessionProvider.js - About 2 hrs to fix

                Function open has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        modals.open = function ( obj, index, template, options, action ) {
                          if (arguments.length < 5) {
                            action   = options;
                            options  = template;
                            template = index;
                Severity: Major
                Found in app/modules/cs_modal/scripts/cs_modal_factory.js - About 2 hrs to fix

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

                        $get: function( $injector, UserService ) {
                          var RoleService   = $injector.has( 'RoleService' ) ? $injector.get( 'RoleService' ) : false
                            , ModalFactory  = $injector.has( 'ModalFactory' ) ? $injector.get( 'ModalFactory' ) : false;
                  
                          if ( inheritedProviders ) {
                  Severity: Major
                  Found in app/modules/auth/providers/AuthHelpersProvider.js - About 2 hrs to fix

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

                          $get: function( $injector, $rootScope, $log, Session, Helpers ) {
                            if ( !sessionProvider ) {
                              sessionProvider = Session;
                            }
                    
                    
                    Severity: Major
                    Found in app/modules/cs_accounts/providers/AccountProvider.js - About 2 hrs to fix

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

                                function( $injector, $location, $log ) {
                      
                                  if ( inheritedProviders ) {
                                    inheritedProviders.forEach( function( inheritedProvider ) {
                                      var provider = $injector.get( inheritedProvider );
                      Severity: Major
                      Found in app/modules/cs_common/providers/HelpersProvider.js - About 2 hrs to fix

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

                                helpers.openRoleModal = function( role ) {
                                  ModalFactory.open( role, '/modules/roles/views/role/form.html', {
                                    controller: 'RoleEditController',
                                    resolve: {
                                      role: function() {
                        Severity: Minor
                        Found in app/modules/roles/providers/RoleHelpersProvider.js - About 2 hrs to fix

                          Function slide has 46 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 || $active[type]()
                              var isCycling = this.interval
                              var direction = type == 'next' ? 'left' : 'right'
                          Severity: Minor
                          Found in app/scripts/bootstrap.js - About 1 hr to fix

                            Function openUserModal has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    helpers.openUserModal = function( user, currentUser ) {
                                      ModalFactory.open( user, '/modules/auth/views/users/form.html', {
                                        controller: 'UserEditController',
                                        resolve: {
                                          user: function() {
                            Severity: Minor
                            Found in app/modules/auth/providers/AuthHelpersProvider.js - About 1 hr to fix

                              Function show has 41 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: Minor
                              Found in app/scripts/bootstrap.js - About 1 hr to fix

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

                                        helpers.openDeletePermissionModal = function( permission ) {
                                          ModalFactory.open( {}, '/modules/cs_modal/views/confirmModal.html', {
                                            resolve: {
                                              title: function() {
                                                return 'Delete the "' + permission.action + '" Permission?';
                                Severity: Minor
                                Found in app/modules/roles/providers/RoleHelpersProvider.js - About 1 hr to fix

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

                                          helpers.openDeleteRoleModal = function( role ) {
                                            ModalFactory.open( {}, '/modules/cs_modal/views/confirmModal.html', {
                                              resolve: {
                                                title: function() {
                                                  return 'Delete the "' + role.name + '" Role?';
                                  Severity: Minor
                                  Found in app/modules/roles/providers/RoleHelpersProvider.js - About 1 hr to fix

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

                                            function showMessage() {
                                              if( _( $scope.message ).isUndefined() || _( $scope.message ).isEmpty() ) {
                                                $log.warn( 'Empty message received' );
                                                return;
                                              }
                                    Severity: Minor
                                    Found in app/modules/cs_messenger/scripts/messenger_directive.js - About 1 hr to fix

                                      Function openPermissionModal has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              helpers.openPermissionModal = function( permission ) {
                                                ModalFactory.open( permission, '/modules/roles/views/permission/form.html', {
                                                  controller: 'PermissionEditController',
                                                  resolve: {
                                                    permission: function() {
                                      Severity: Minor
                                      Found in app/modules/roles/providers/RoleHelpersProvider.js - About 1 hr to fix

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

                                        module.exports = function (grunt) {
                                          'use strict';
                                        
                                          require('time-grunt')(grunt);
                                          require('load-grunt-tasks')(grunt);
                                        Severity: Minor
                                        Found in Gruntfile.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language