trailsjs/trailpack-hapi

View on GitHub

Showing 1 of 5 total issues

Function registerRoutes has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  registerRoutes (config, server, app) {
    server.route(app.routes)

    if (app.config.main.paths.www) {
      if (Array.isArray(app.config.main.paths.www)) {
Severity: Minor
Found in lib/server.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language