dsifford/academic-bloggers-toolkit

View on GitHub
src/js/gutenberg/components/reference-form-identifier/index.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function IdentifierForm has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function IdentifierForm(props: Props) {
    const { setIdentifierKind } = useDispatch('abt/ui');
    const kind = useSelect(select => select('abt/ui').getIdentifierKind());

    const [value, setValue] = useState('');
Severity: Major
Found in src/js/gutenberg/components/reference-form-identifier/index.tsx - About 2 hrs to fix

    Function fetchData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    async function fetchData(
        kind: IdentifierKind,
        value: string,
    ): Promise<CSL.Data> {
        let response: CSL.Data | ResponseError;
    Severity: Minor
    Found in src/js/gutenberg/components/reference-form-identifier/index.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status