Showing 6 of 17 total issues
Function searchService
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function searchService($http, $window, $sessionStorage, $localStorage, $rootScope) {
var vm = this;
vm.newsPath = 'http://arqui8.ing.puc.cl/api/v1/private/news';
vm.searchPath = 'http://arqui8.ing.puc.cl/api/v1/private/search';
vm.tagsPath = 'http://arqui8.ing.puc.cl/api/v1/private/tags';
Function navbarController
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function navbarController($rootScope, sessionService, searchService) {
var vm = this;
vm.session = {};
getLSLists();
Function sessionService
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sessionService($http, $window, $sessionStorage, $localStorage, $rootScope) {
var vm = this;
vm.login = function(userForm) {
return $http({
Consider simplifying this complex logical expression. Open
Open
if (sessionService.loggedIn()) {
vm.tagCollection = vm.tagCollection || searchService.getLSTags();
vm.providerCollection = vm.providerCollection || searchService.getLSProviders();
vm.categoryCollection = vm.categoryCollection || searchService.getLSCategories();
vm.peopleCollection = vm.peopleCollection || searchService.getLSPeople();
Function searchService
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function searchService($http, $window, $sessionStorage, $localStorage, $rootScope) {
Function sessionService
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function sessionService($http, $window, $sessionStorage, $localStorage, $rootScope) {