nemesiscodex/openfonacide

View on GitHub
static/js/dncp/util/shape/MarkLine.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function brushSymbol has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        brushSymbol : function (ctx, style, idx) {
            if (style.symbol[idx] == 'none') {
                return;
            }
            ctx.save();
Severity: Major
Found in static/js/dncp/util/shape/MarkLine.js - About 2 hrs to fix

    Function buildPath has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            buildPath : function (ctx, style) {
                var lineType = style.lineType || 'solid';
    
                ctx.moveTo(style.xStart, style.yStart);
                if (style.curveness > 0) {
    Severity: Minor
    Found in static/js/dncp/util/shape/MarkLine.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status