KarrLab/test_history_server

View on GitHub
public/static/js/flot-0.8.3/jquery.flot.threshold.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function init has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function init(plot) {
        function thresholdData(plot, s, datapoints, below, color) {
            var ps = datapoints.pointsize, i, x, y, p, prevp,
                thresholded = $.extend({}, s); // note: shallow copy

Severity: Major
Found in public/static/js/flot-0.8.3/jquery.flot.threshold.js - About 2 hrs to fix

    Function thresholdData has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function thresholdData(plot, s, datapoints, below, color) {
                var ps = datapoints.pointsize, i, x, y, p, prevp,
                    thresholded = $.extend({}, s); // note: shallow copy
    
                thresholded.datapoints = { points: [], pointsize: ps, format: datapoints.format };
    Severity: Minor
    Found in public/static/js/flot-0.8.3/jquery.flot.threshold.js - About 1 hr to fix

      Function thresholdData has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              function thresholdData(plot, s, datapoints, below, color) {
      Severity: Minor
      Found in public/static/js/flot-0.8.3/jquery.flot.threshold.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status