edgewall/trac

View on GitHub
trac/htdocs/js/workflow_graph.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function drawEdge has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function drawEdge(ctx, edge) {
    var p = [{x: edge.source.bx + edge.source.bw * 2 / 3,
              y: edge.source.by - 1,
              dx: 0, dy: -1},
             {x: edge.source.bx + edge.source.bw / 3,
Severity: Major
Found in trac/htdocs/js/workflow_graph.js - About 2 hrs to fix

    Function computeBoundsAndJustify has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function computeBoundsAndJustify(ctx, nodes, width, height) {
        var borderx = 20, bordery = 20, r = 7, h = 13;
        ctx.font = '13px Arial';
        var bws = [], xs = [], ys = [];
        $.each(nodes, function (index, node) {
    Severity: Minor
    Found in trac/htdocs/js/workflow_graph.js - About 1 hr to fix

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

        function evalBezierCurve(p1, p2, p3, p4, t) {
      Severity: Minor
      Found in trac/htdocs/js/workflow_graph.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status