pmoons/yarnemia

View on GitHub
lib/index.js

Summary

Maintainability
C
1 day
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status