superdesk/superdesk-client-core

View on GitHub
scripts/core/editor3/helpers/inlineStyles.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function sanitizeContent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function sanitizeContent(editorState, styles = acceptedInlineStyles) {
    let contentState = editorState.getCurrentContent();

    const ignoreStyle = (style) => styles.indexOf(style) === -1;
    const getSelection = (block, start, end) => SelectionState.createEmpty(block.getKey()).merge({
Severity: Minor
Found in scripts/core/editor3/helpers/inlineStyles.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status