nemesiscodex/openfonacide

View on GitHub
static/js/dncp/util/date.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function format has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function format(formatter, value) {
        if (formatter == 'week' 
            || formatter == 'month' 
            || formatter == 'quarter' 
            || formatter == 'half-year'
Severity: Minor
Found in static/js/dncp/util/date.js - About 1 hr to fix

    Function getAutoFormatter has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function getAutoFormatter(min, max, splitNumber) {
            splitNumber = splitNumber > 1 ? splitNumber : 2;
            // 最优解
            var curValue;
            var totalGap;
    Severity: Minor
    Found in static/js/dncp/util/date.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status