Showing 12 of 38 total issues
Function ReportService
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ReportService(DataService, $q) {
var reportService = {
getYearlyAirPollutionReport: getYearlyAirPollutionReport,
getStateList: getStateList
File reports.service.spec.js
has 343 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
describe('ReportService', function() {
var ReportService,
Function DashboardController
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DashboardController(ReportService, $log, logger) {
var vm = this;
activate();
Function FacilityListController
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FacilityListController(DataService, $location, NgMap, $google, $timeout) {
var vm = this,
params = $location.search(),
google = $google;
File dashboard.controller.spec.js
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
describe('epaApp', function() {
var scope,
Function FacilityController
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FacilityController(DataService, $stateParams, logger, NgMap, $google, $timeout) {
var vm = this;
activate();
Function exports
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config) {
var configuration = {
files: listFiles(),
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',
Function DataService
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DataService($resource, TRI_API_ENDPOINT) {
var service = {
Facilities: $resource(
TRI_API_ENDPOINT + '/facilities/:id',
{id: '@id'},
Function FacilityController
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function FacilityController(DataService, $stateParams, logger, NgMap, $google, $timeout) {
Function FacilityListController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function FacilityListController(DataService, $location, NgMap, $google, $timeout) {