pmoons/yarnemia

View on GitHub

Showing 2 of 2 total issues

Function register has 140 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.register = (server, options, next) => {
  // Validate options and apply defaults
  const settings = Hoek.applyToDefaults(internals.defaults, options);
  settings.cookieOptions.encoding = 'none';

Severity: Major
Found in lib/index.js - About 5 hrs to fix

    Function decorate has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const decorate = (err) => {
          if (req.yarnemia._store._lazyKeys) {
            req.yarnemia._isLazy = true;  // Default to lazy mode if previously set
            req.yarnemia._store._lazyKeys.forEach((key) => {
              req.yarnemia[key] = req.yarnemia._store[key];
    Severity: Major
    Found in lib/index.js - About 2 hrs to fix
      Severity
      Category
      Status
      Source
      Language