Markionium/data-dictionary

View on GitHub
src/edit/edit.controller.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function constructor has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    constructor(modelToEdit, modelName, d2FormFields, models) {
        this.modelToEdit = modelToEdit;
        this.modelName = modelName;
        this.fieldManager = d2FormFields.getManager(fieldIgnoreList.has(modelName) ? fieldIgnoreList.get(modelName) : defaultFieldIgnoreList);
        this.fieldManager.setFieldOrder(fieldOrder.has(modelName) ? fieldOrder.get(modelName) : ['name', 'shortName', 'code']);
Severity: Major
Found in src/edit/edit.controller.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status