app/assets/javascripts/usage_charts.js
Function initChart
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initChart(chartDiv) {
var supply = $(chartDiv).find("input[name='supply']").val();
var period = $(chartDiv).find("input[name='period']").val();
Function setUpDatePicker
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function setUpDatePicker(divId, inputId, maxMin, defaultDate, period) {