bookbrainz/bookbrainz-site

View on GitHub
src/server/helpers/render.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function renderRelationship has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function renderRelationship(relationship: Relationship) {
    const inputsInvalid =
        !relationship.source || !relationship.target ||
        !isString(get(relationship, 'type.linkPhrase'));
    if (inputsInvalid) {
Severity: Minor
Found in src/server/helpers/render.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status