GeoKnow/Jassa-Core

View on GitHub
lib/facete/facet_value_service/FacetValueService.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function prepareTableService has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    prepareTableService: function(path, excludeSelfConstraints) {
        var concept = FacetUtils.createConceptResources(this.facetConfig, path, excludeSelfConstraints);

        //console.log('FacetValueConcept: ' + concept + ' config: ', this.facetConfig);

Severity: Minor
Found in lib/facete/facet_value_service/FacetValueService.js - About 1 hr to fix

    Function result has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            var result = ServiceUtils.fetchCountRows(this.sparqlService, concept.getElement(), this.rowLimit).then(function(countInfo) {
                var canUseCounts = countInfo.hasMoreItems === false;
    
                // Check if we can fetch all data at once
                // If not, we can switch to paginated mode
    Severity: Minor
    Found in lib/facete/facet_value_service/FacetValueService.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status