superdesk/superdesk-client-core

View on GitHub
scripts/validate-instance-configuration.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function maybeDisplayInvalidInstanceConfigurationMessage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function maybeDisplayInvalidInstanceConfigurationMessage() {
    const issues: Array<React.ReactNode> = [];

    ng.get('vocabularies').getAllActiveVocabularies().then((vocabularies) => {
        const categoriesMissing = vocabularies.find(({_id}) => _id === 'categories') == null;
Severity: Minor
Found in scripts/validate-instance-configuration.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status