remirror/remirror

View on GitHub

Showing 6 of 41 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 buildPackageJson has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          packageDir: string,
          /**
           * The absolute path to the directory that include the package.json file. This directory may be the same as the packageDir or it may be a subdirectory of the packageDir.
           */
          packageJsonDir: string,
        Severity: Minor
        Found in packages/remirror__cli/src/utils/build-package.ts - About 35 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