ForestAdmin/forest-express

View on GitHub
src/integrations/intercom/setup.js

Summary

Maintainability
A
1 hr
Test Coverage
F
46%

Function createCollections has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.createCollections = (Implementation, apimap, collectionName) => {
  const { modelsManager } = inject();
  const collectionDisplayName = _.capitalize(collectionName);
  const model = modelsManager.getModels()[collectionName];
  // jshint camelcase: false
Severity: Minor
Found in src/integrations/intercom/setup.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status