witq/endoscope

View on GitHub

Showing 2 of 17 total issues

Function exports has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = endoscopeInstance => (fastify, options, next) => {
  const endoscopeOptions = Object.assign(
    {},
    defaultEndoscopeOptions,
    options.endoscope
Severity: Minor
Found in lib/middleware/fastify.js - About 1 hr to fix

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

    module.exports = endoscopeInstance => (options = {}) => {
      const endoscopeOptions = Object.assign({}, defaultEndoscopeOptions, options);
    
      return (request, response) => {
        const url = parse(request.url);
    Severity: Minor
    Found in lib/middleware/http.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language