devworkstecnology/webadmin

View on GitHub
vendor/assets/javascripts/charts/easypiechart/jquery.easy-pie-chart.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function easyPieChart has 141 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  $.easyPieChart = function(el, options) {
    var addScaleLine, animateLine, drawLine, easeInOutQuad, rAF, renderBackground, renderScale, renderTrack,
      _this = this;
    this.el = el;
    this.$el = $(el);

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

        this.init = function() {
          var percent, scaleBy;
          _this.options = $.extend({}, $.easyPieChart.defaultOptions, options);
          percent = parseInt(_this.$el.data('percent'), 10);
          _this.percentage = 0;

      There are no issues that match your filters.

      Category
      Status