superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring-react/field-adapters/subject.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function getSubjectAdapter has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function getSubjectAdapter(): IFieldAdapter<IArticle> {
    const getItems: () => ITreeWithLookup<ISubjectCode> = memoize(() => {
        const subjectCodes = store.getState().subjectCodes;

        return ({
Severity: Major
Found in scripts/apps/authoring-react/field-adapters/subject.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status