IIC2173-2015-2-Grupo2/GUI

View on GitHub
source/directives/navbar.directive.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function navbarController has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function navbarController($rootScope, sessionService, searchService) {
    var vm = this;
    vm.session = {};
    getLSLists();

Severity: Minor
Found in source/directives/navbar.directive.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    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();
    Severity: Major
    Found in source/directives/navbar.directive.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status