lib/index.js
Function initialize
has 167 lines of code (exceeds 50 allowed). Consider refactoring. Open
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'
Function init
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
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