nanoexpress/nanoexpress

View on GitHub
src/helpers/process-validation.js

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

          if (!errors) {
            errors = {
              type: 'errors',
              errors: { [type]: [`${type} is not missing`] }
            };
Severity: Major
Found in src/helpers/process-validation.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

              if (_errors[type]) {
                _errors[type].push(...validator.errors.map((err) => err.message));
              } else {
                _errors[type] = validator.errors.map((err) => err.message);
              }
    Severity: Major
    Found in src/helpers/process-validation.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status