live627/livedate

View on GitHub

Showing 4 of 9 total issues

Function Livedate has 227 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function Livedate (input, uconf)
    {
        var
            conf = extend({
                yearRange: [-5, 10],
Severity: Major
Found in src/livedate.js - About 1 day to fix

    Function setValue has 91 lines of code (exceeds 25 allowed). Consider refactoring.
    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)
    Severity: Major
    Found in src/livedate.js - About 3 hrs to fix

      Function factory has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function factory(version) {
          return {
              entry: './src/livedate.js',
              output: {
                  path: path.join(__dirname, 'build'),
      Severity: Minor
      Found in webpack.config.js - About 1 hr to fix

        Avoid too many return statements within this function.
        Open

                        return date;
        Severity: Major
        Found in src/livedate.js - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language