src/app/services/reports.service.js
Function ReportService
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ReportService(DataService, $q) {
var reportService = {
getYearlyAirPollutionReport: getYearlyAirPollutionReport,
getStateList: getStateList
Function calculateReportTotals
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function calculateReportTotals(reportData) {
// Total years
var numReportRows = reportData.length;
if(numReportRows > 0) {
// Add totals to reports
Function buildQueryParams
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildQueryParams(params, unitOfMeasure) {
var filters = [],
queryParams = {},
filterMappings = {
'state': 'facility.address.state',