ksmithut/skyway

View on GitHub
swagger2/routes/security/security.js

Summary

Maintainability
A
1 hr
Test Coverage

Function context has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.context = (options, docs) => {
  const securityHandlers = R.pathOr({}, ['security'], options)
  const securityDefinitions = R.pathOr({}, ['securityDefinitions'], docs)
  const handlers = R.mapObjIndexed((definition, key) => {
    const handler = R.propOr(notImplemented, key, securityHandlers)
Severity: Minor
Found in swagger2/routes/security/security.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status