kalisio/feathers-distributed

View on GitHub

Showing 2 of 14 total issues

Function initialize has 167 lines of code (exceeds 50 allowed). Consider refactoring.
Open

export async function initialize (app) {
  debug('Initializing cote with options', app.coteOptions)
  // Setup cote with options
  app.cote = makeCote(app.coteOptions)
  app.distributionKey = app.distributionOptions.key || 'default'
Severity: Major
Found in lib/index.js - About 5 hrs to fix

    Function init has 52 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    export default function init (options = {}) {
      return function (app) {
        // We need to uniquely identify the app to avoid infinite loop by registering our own services
        app.uuid = uuid()
        // For display purpose
    Severity: Major
    Found in lib/index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language