dopry/netlify-cms

View on GitHub
src/components/Widgets/ListControl.js

Summary

Maintainability
A
1 hr
Test Coverage

Function renderItem has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  renderItem(item, index) {
    const { value, field, getAsset, onAddAsset, onRemoveAsset } = this.props;
    const { itemStates } = this.state;
    const collapsed = itemStates.getIn([index, 'collapsed']);
    const classNames = [styles.item, collapsed ? styles.collapsed : styles.expanded];
Severity: Minor
Found in src/components/Widgets/ListControl.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status