crafatar/crafatar

View on GitHub
lib/renders.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function draw_model has 111 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exp.draw_model = function(rid, img, scale, overlay, is_body, slim, callback) {
  var canvas = cvs.createCanvas();
  canvas.width = scale * 20;
  canvas.height = scale * (is_body ? 45.1 : 18.5);

Severity: Major
Found in lib/renders.js - About 4 hrs to fix

    Function draw_model has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    exp.draw_model = function(rid, img, scale, overlay, is_body, slim, callback) {
    Severity: Major
    Found in lib/renders.js - About 50 mins to fix

      Function getPart has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function getPart(src, x, y, width, height, scale) {
      Severity: Minor
      Found in lib/renders.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status