Showing 4 of 9 total issues
Function Livedate
has 227 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Livedate (input, uconf)
{
var
conf = extend({
yearRange: [-5, 10],
Function setValue
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setValue = function(year, month, day, fromKey)
{
var date = integer(month) >= -1 ? new Date(integer(year), integer(month), integer(day == undefined || isNaN(day) ? 1 : day)) : year || value;
if (date < min)
Function factory
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function factory(version) {
return {
entry: './src/livedate.js',
output: {
path: path.join(__dirname, 'build'),
Avoid too many return
statements within this function. Open
Open
return date;