funkjunky/schemaless-normalizer

View on GitHub

Showing 1 of 6 total issues

Function flattenModel has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    const flattenModel = (modelName, model) => {
        if (models.length && !models.includes(modelName)) {
            console.warn('model name doesnt exist: ', modelName);
            return;
        }
Severity: Major
Found in flatten.js - About 2 hrs to fix
    Severity
    Category
    Status
    Source
    Language