denbon05/fastify-lcache

View on GitHub

Showing 2 of 2 total issues

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

const cache: FastifyPluginCallback<ICacheOptions> = (
  instance: FastifyInstance,
  opts: ICacheOptions,
  _next
) => {
Severity: Minor
Found in lib/index.ts - About 1 hr to fix

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

    export const getApp = (options: ICacheOptions = {}) => {
      const app = fastify();
      app.register(lcache, options);
    
      app.after(() => {
    Severity: Minor
    Found in __tests__/helpers/index.ts - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language