ForestAdmin/forest-express

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

Summary

Maintainability
A
3 hrs
Test Coverage
F
37%

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

exports.createCollections = (Implementation, apimap, collectionAndFieldName, options) => {
  const { modelsManager } = inject();
  const model = modelsManager.getModels()[collectionAndFieldName.split('.')[0]];
  const modelName = Implementation.getModelName(model);
  const collectionDisplayName = _.capitalize(modelName);
Severity: Major
Found in src/integrations/mixpanel/setup.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status