eHealthAfrica/LMIS-Chrome

View on GitHub
app/scripts/services/app-config-service.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function getProductTypes has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  this.getProductTypes = function() {
    return getAppConfigFromMemoryOrStorage()
      .then(function(appConfig) {
        var facilityStockListProductTypes = [];
        var uuidListOfProductTypesAlreadyRecorded = [];
Severity: Minor
Found in app/scripts/services/app-config-service.js - About 1 hr to fix

    Function getSelectedFacility has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      this.getSelectedFacility = function(key, e){
        if(e.target.checked) {
         var view = 'facilities/by_lga';
         var options = {
           include_docs : false,
    Severity: Minor
    Found in app/scripts/services/app-config-service.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status