dsi-icl/optimise

View on GitHub
packages/optimise-core/src/controllers/availableFieldController.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getFields has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static getFields({ params, query }, res) {     //bound to GETclinicalEvents and GETtestTypes too
        const tableMap = {
            visitFields: 'AVAILABLE_FIELDS_VISITS',
            visitSections: 'AVAILABLE_VISIT_SECTIONS',
            testFields: 'AVAILABLE_FIELDS_TESTS',
Severity: Minor
Found in packages/optimise-core/src/controllers/availableFieldController.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status