Vizzuality/gfw-climate

View on GitHub
app/assets/javascripts/countries/services/ReportService.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

    get: function(status) {
      return new Promise(
        function(resolve, reject) {
          this.report = status;
          var url = this.getUrl();
Severity: Minor
Found in app/assets/javascripts/countries/services/ReportService.js - About 1 hr to fix

    Function decoder has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                decoder: function(data, status, xhr, success, error) {
    Severity: Minor
    Found in app/assets/javascripts/countries/services/ReportService.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status