Showing 36 of 114 total issues
Function exports
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
'use strict';
require('time-grunt')(grunt);
require('load-grunt-tasks')(grunt);
Function show
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Collapse.prototype.show = function () {
if (this.transitioning || this.$element.hasClass('in')) return
var startEvent = $.Event('show.bs.collapse')
this.$element.trigger(startEvent)
Function backdrop
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Modal.prototype.backdrop = function (callback) {
var that = this
var animate = this.$element.hasClass('fade') ? 'fade' : ''
if (this.isShown && this.options.backdrop) {
Function show
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Modal.prototype.show = function (_relatedTarget) {
var that = this
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
this.$element.trigger(e)
Function ResourceFactory
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ResourceFactory( resourceUrl, defaultParams, actions ) {
/**
* @ngdoc function
* @name builder
Function getData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getData : function($defer, params) {
// $scope.toggleFilter = function(params) {
// params.settings().$scope.show_filter = !params.settings().$scope.show_filter;
// };
Function switchRouteMatcher
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.
Function exports
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function activate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.activate = function (element, container, callback) {
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
&& $active.hasClass('fade')
Function ensurePermission
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helpers.ensurePermission = function( permission ) {
var hasPerm;
var scope = $rootScope.$new(true);
var clearWatcher = scope.$watch('user', function(user){
if(!user){
Consider simplifying this complex logical expression. Open
Open
if (autoPlace) {
var $parent = this.$element.parent()
var orgPlacement = placement
var docScroll = document.documentElement.scrollTop || document.body.scrollTop
Consider simplifying this complex logical expression. Open
Open
if ( route && ( !route.public || route.requiresPermission || route.requiresPermissions || route.permissions || route.roles ) ) {
$rootScope.$broadcast( 'SessionProvider:signInStart' );
handlers.signInStart( next.substr( 1 ) );
}
Function $get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$get: function( $injector, $rootScope, $log, Session, Helpers ) {
Function $get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function( $rootScope, $location, $route, $injector, $log ) {
Function open
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
modals.open = function ( obj, index, template, options, action ) {
Avoid too many return
statements within this function. Open
Open
return this