holidayextras/jsonapi-server

View on GitHub
lib/swagger/index.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function _getSwaggerBase has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

swagger._getSwaggerBase = () => {
  const swaggerConfig = jsonApi._apiConfig.swagger || { }
  let basePath, host, protocol
  if (jsonApi._apiConfig.urlPrefixAlias) {
    const urlObj = url.parse(jsonApi._apiConfig.urlPrefixAlias)
Severity: Major
Found in lib/swagger/index.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status