public/rearview-src/js/view/base.js
File base.js
has 382 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define([
'jquery',
'underscore',
'backbone',
'handlebars',
Function renderGraphData
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderGraphData : function(chart, graphData) {
var self = this,
renderData = graphData,
times = [],
colors = [ // creating an array to a series color scheme to stay consistant between updates from the server
Function initGraph
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initGraph : function(el) {
var self = this;
self.chart = new Highcharts.Chart({
exporting : {
Function resizeModal
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resizeModal : function($modal, size, ignoreHeight) {
var width = $(window).width(),
height = $(window).height(),
widthMultiplier = 0.6,
heightMultiplier = 0.8;
Function _toggleFullscreen
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_toggleFullscreen : function(selector, mirrorRef, closeButton, backButton) {
var self = this,
editorEl = $(selector);
if (!editorEl.hasClass('fullscreen')) {
Avoid deeply nested control flow statements. Open
Open
if (!_.isNull(timeIndex)) {
chart.xAxis[0].addPlotLine({
id : 'plotLine',
value : timeIndex,
color : 'green',