zammad/zammad

View on GitHub
app/assets/javascripts/app/lib/flot/jquery.flot.threshold.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

    function init(plot) {
        function thresholdData(plot, s, datapoints) {
            if (!s.threshold)
                return;
            
Severity: Minor
Found in app/assets/javascripts/app/lib/flot/jquery.flot.threshold.js - About 1 hr to fix

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

            function thresholdData(plot, s, datapoints) {
                if (!s.threshold)
                    return;
                
                var ps = datapoints.pointsize, i, x, y, p, prevp,
    Severity: Minor
    Found in app/assets/javascripts/app/lib/flot/jquery.flot.threshold.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status