hummingbird-me/hummingbird

View on GitHub
app/assets/javascripts/old/jquery.easy-pie-chart.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function easyPieChart has 145 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;
Severity: Major
Found in app/assets/javascripts/old/jquery.easy-pie-chart.js - About 5 hrs to fix

    Function init has 30 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);
    Severity: Minor
    Found in app/assets/javascripts/old/jquery.easy-pie-chart.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status