static/js/dncp/util/date.js
Function format
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function format(formatter, value) {
if (formatter == 'week'
|| formatter == 'month'
|| formatter == 'quarter'
|| formatter == 'half-year'
Function getAutoFormatter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getAutoFormatter(min, max, splitNumber) {
splitNumber = splitNumber > 1 ? splitNumber : 2;
// 最优解
var curValue;
var totalGap;