guillaumemaka/realworld-starter-kit-hapijs

View on GitHub
lib/modules/api/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

const register = (server, options, next) => {
  const preResponse = (request, reply) => {
    let response = request.response
    if (response.isBoom) {
      const reformated = { errors: {} }
Severity: Minor
Found in lib/modules/api/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status