autolab/Autolab

View on GitHub
app/assets/javascripts/metricsgraphics_brushing.js

Summary

Maintainability
C
1 day
Test Coverage

Function brushing has 157 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function brushing() {
    var chartContext = this;

    args = this.args;

Severity: Major
Found in app/assets/javascripts/metricsgraphics_brushing.js - About 6 hrs to fix

    File metricsgraphics_brushing.js has 262 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function(root, factory) {
      if (typeof define === 'function' && define.amd) {
        define(['d3', 'jquery', 'MG'], factory);
      } else if (typeof exports === 'object') {
        module.exports = factory(require('d3'), require('jquery'), require('MG'));
    Severity: Minor
    Found in app/assets/javascripts/metricsgraphics_brushing.js - About 2 hrs to fix

      Function get_brush_interval has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function get_brush_interval(args) {
          var resolution = args.brushing_interval,
              interval;
      
          if (!resolution) {
      Severity: Minor
      Found in app/assets/javascripts/metricsgraphics_brushing.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status