CleverStack/angular-seed

View on GitHub

Showing 36 of 114 total issues

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

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

      Collapse.prototype.show = function () {
        if (this.transitioning || this.$element.hasClass('in')) return
    
        var startEvent = $.Event('show.bs.collapse')
        this.$element.trigger(startEvent)
    Severity: Minor
    Found in app/scripts/bootstrap.js - About 1 hr to fix

      Function backdrop has 30 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 app/scripts/bootstrap.js - About 1 hr to fix

        Function show has 29 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 app/scripts/bootstrap.js - About 1 hr to fix

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

                function ResourceFactory( resourceUrl, defaultParams, actions ) {
          
                  /**
                   * @ngdoc function
                   * @name builder
          Severity: Minor
          Found in app/modules/cs_common/providers/ResourceFactoryProvider.js - About 1 hr to fix

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

                    getData   : function($defer, params) {
            
                      // $scope.toggleFilter = function(params) {
                      //   params.settings().$scope.show_filter = !params.settings().$scope.show_filter;
                      // };
            Severity: Minor
            Found in app/modules/cs_table/controllers/CleverTableController.js - About 1 hr to fix

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

                    function switchRouteMatcher(on, when, whenProperties) {
                      // TODO(i): this code is convoluted and inefficient, we should construct the route matching
                      //   regex only once and then reuse it
              
                      // Escape regexp special characters.
              Severity: Minor
              Found in app/modules/auth/providers/SessionProvider.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({
                    // list of files / patterns to load in the browser
                
                    // **/*.js: All files with a "js" extension in all subdirectories
                Severity: Minor
                Found in test-unit.conf.js - About 1 hr to fix

                  Function activate has 27 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.hasClass('fade')
                  Severity: Minor
                  Found in app/scripts/bootstrap.js - About 1 hr to fix

                    Function ensurePermission has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            helpers.ensurePermission = function( permission ) {
                              var hasPerm;
                              var scope = $rootScope.$new(true);
                              var clearWatcher = scope.$watch('user', function(user){
                                if(!user){
                    Severity: Minor
                    Found in app/modules/roles/providers/RoleHelpersProvider.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                            if (autoPlace) {
                              var $parent = this.$element.parent()
                      
                              var orgPlacement = placement
                              var docScroll    = document.documentElement.scrollTop || document.body.scrollTop
                      Severity: Major
                      Found in app/scripts/bootstrap.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                      if ( route && ( !route.public || route.requiresPermission || route.requiresPermissions || route.permissions || route.roles ) ) {
                                        $rootScope.$broadcast( 'SessionProvider:signInStart' );
                                        handlers.signInStart( next.substr( 1 ) );
                                      }
                        Severity: Major
                        Found in app/modules/auth/providers/SessionProvider.js - About 40 mins to fix

                          Function $get has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                $get: function( $injector, $rootScope, $log, Session, Helpers ) {
                          Severity: Minor
                          Found in app/modules/cs_accounts/providers/AccountProvider.js - About 35 mins to fix

                            Function $get has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    function( $rootScope, $location, $route, $injector, $log ) {
                            Severity: Minor
                            Found in app/modules/auth/providers/SessionProvider.js - About 35 mins to fix

                              Function open has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      modals.open = function ( obj, index, template, options, action ) {
                              Severity: Minor
                              Found in app/modules/cs_modal/scripts/cs_modal_factory.js - About 35 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return this
                                Severity: Major
                                Found in app/scripts/bootstrap.js - About 30 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language