remirror/remirror

View on GitHub

Showing 5 of 35 total issues

Consider simplifying this complex logical expression.
Open

  if (
    // Skip when the range contains an excluded mark.
    (invalidMarks && markActiveInRange({ $from, $to }, invalidMarks)) ||
    (rule.invalidMarks && markActiveInRange({ $from, $to }, rule.invalidMarks)) ||
    // Skip pure whitespace updates
Severity: Critical
Found in packages/remirror__core-utils/src/prosemirror-rules.ts - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

      if (
        key === 'Home' ||
        (key === 'ArrowUp' && metaKeyPressed) ||
        key === 'End' ||
        (key === 'ArrowDown' && metaKeyPressed)
    Severity: Major
    Found in packages/multishift/src/multishift-utils.ts - About 1 hr to fix

      Function handleMouseMove has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        view,
        event,
        handleWidth,
        cellMinWidth,
        lastColumnResizable,
      Severity: Minor
      Found in packages/remirror__extension-react-tables/src/table-column-resizing.ts - About 45 mins to fix

        Function offsetIncrement has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          source: string,
          initialCursor: number,
          formatted: string,
          endCursor: number,
          replacementPairs: Array<[string, string]>,
        Severity: Minor
        Found in packages/remirror__extension-code-block/src/formatter.ts - About 35 mins to fix

          Function showButton has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            trigger: HTMLElement,
            findTable: FindTable,
            type: TriggerAreaType,
            axis: CellAxis,
            view: EditorView,
            Severity
            Category
            Status
            Source
            Language