wikimedia/wikimedia-fundraising-dash

View on GitHub
src/components/widgets/distance-to-goal-chart/distance-to-goal-chart.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function DistanceToGoalChartViewModel has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function DistanceToGoalChartViewModel( params ) {

        var self = this;
        WidgetBase.call( this, params );
        self.hasData = ko.observable( false );

    Function makeCharts has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            self.makeCharts = function () {
                if ( params.sharedContext.dailyDataArray.length < 2 ) {
                    return;
                }
                self.hasData( true );

      There are no issues that match your filters.

      Category
      Status