Showing 15 of 77 total issues
File controllers.js
has 980 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var controllerModule = angular.module('uchiwa.controllers', []);
/**
File services.js
has 831 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var serviceModule = angular.module('uchiwa.services', []);
/**
File filters.js
has 390 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var filterModule = angular.module('uchiwa.filters', []);
filterModule.filter('arrayLength', function() {
File factories.js
has 329 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var factoryModule = angular.module('uchiwa.factories', []);
factoryModule.factory('authInterceptor', function ($cookieStore, $q, $location) {
Function exports
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
grunt.initConfig({
Function addEntry
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addEntry = function() {
// Verify the datacenter
if (angular.isUndefined($scope.options.datacenter) || $scope.options.datacenter === '') {
Notification.error('Please select a datacenter');
return false;
Function ok
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.ok = function() {
// Verify that the datacenter was added
if (angular.isUndefined($scope.datacenter.selected) || $scope.datacenter.selected === '') {
Notification.error('Please select a datacenter');
return false;
Function link
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope) {
scope.display = false;
scope.userSubscriptions = [];
var verifySubscriptions = function() {
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;