Showing 36 of 114 total issues
File bootstrap.js
has 1190 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v3.0.3 (http://getbootstrap.com)
* Copyright 2013 Twitter, Inc.
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
*/
Function $get
has 263 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function( $rootScope, $location, $route, $injector, $log ) {
var messenger = $injector.has( 'Messenger' ) ? $injector.get( 'Messenger' ) : $log;
if ( !sessionService && sessionServiceName ) {
sessionService = $injector.get( sessionServiceName );
Function $get
has 223 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
File SessionProvider.js
has 338 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define( [ 'angular', '../module' ], function( ng ) {
'use strict';
/**
* @ngdoc service
Function link
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function ($scope, element) {
var alertClass, appMessage, alertType, icon, textWrapper, closeButton, closingPromise;
var allowedTypes = ['warning', 'error', 'success', 'info', 'loading'];
var defaultType = 'warning';
Function Helpers
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Helpers() {
var helpers = {};
var inheritedProviders = [];
Function locationChange
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
}
Function open
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
modals.open = function ( obj, index, template, options, action ) {
if (arguments.length < 5) {
action = options;
options = template;
template = index;
Function $get
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$get: function( $injector, $rootScope, $log, Session, Helpers ) {
if ( !sessionProvider ) {
sessionProvider = Session;
}
Function $get
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$get: function( $injector, UserService ) {
var RoleService = $injector.has( 'RoleService' ) ? $injector.get( 'RoleService' ) : false
, ModalFactory = $injector.has( 'ModalFactory' ) ? $injector.get( 'ModalFactory' ) : false;
if ( inheritedProviders ) {
Function $get
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function( $injector, $location, $log ) {
if ( inheritedProviders ) {
inheritedProviders.forEach( function( inheritedProvider ) {
var provider = $injector.get( inheritedProvider );
Function openRoleModal
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helpers.openRoleModal = function( role ) {
ModalFactory.open( role, '/modules/roles/views/role/form.html', {
controller: 'RoleEditController',
resolve: {
role: function() {
Function slide
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'
Function openUserModal
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helpers.openUserModal = function( user, currentUser ) {
ModalFactory.open( user, '/modules/auth/views/users/form.html', {
controller: 'UserEditController',
resolve: {
user: function() {
Function show
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.show = function () {
var e = $.Event('show.bs.'+ this.type)
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
Function openDeletePermissionModal
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helpers.openDeletePermissionModal = function( permission ) {
ModalFactory.open( {}, '/modules/cs_modal/views/confirmModal.html', {
resolve: {
title: function() {
return 'Delete the "' + permission.action + '" Permission?';
Function openDeleteRoleModal
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helpers.openDeleteRoleModal = function( role ) {
ModalFactory.open( {}, '/modules/cs_modal/views/confirmModal.html', {
resolve: {
title: function() {
return 'Delete the "' + role.name + '" Role?';
Function showMessage
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showMessage() {
if( _( $scope.message ).isUndefined() || _( $scope.message ).isEmpty() ) {
$log.warn( 'Empty message received' );
return;
}
Function openPermissionModal
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helpers.openPermissionModal = function( permission ) {
ModalFactory.open( permission, '/modules/roles/views/permission/form.html', {
controller: 'PermissionEditController',
resolve: {
permission: function() {
Function applyPlacement
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.applyPlacement = function(offset, placement) {
var replace
var $tip = this.tip()
var width = $tip[0].offsetWidth
var height = $tip[0].offsetHeight