superdesk/superdesk-client-core

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

Summary

Maintainability
A
2 hrs
Test Coverage

Function handleBeforeInputHighlights has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function handleBeforeInputHighlights(
    onChange,
    chars: string,
    editorState: EditorState,
): DraftHandleValue {
Severity: Minor
Found in scripts/core/editor3/helpers/handleBeforeInputHighlights.ts - About 1 hr to fix

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

    function getRelevantCharactersForCollapsedSelection(
        editorState: EditorState,
        collapsedSelection: SelectionState,
    ): List<CharacterMetadata> {
        let characters = List<CharacterMetadata>();
    Severity: Minor
    Found in scripts/core/editor3/helpers/handleBeforeInputHighlights.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status