codevise/pageflow

View on GitHub
entry_types/scrolled/package/src/frontend/inlineEditing/EditableText/Selection.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function Selection has 104 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function Selection(props) {
  const editor = useSlate();
  const {t} = useI18n({locale: 'ui'});

  const ref = useRef()

    Function toolbarButtons has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function toolbarButtons(t) {
      return [
        {
          name: 'paragraph',
          text: t('pageflow_scrolled.inline_editing.formats.paragraph'),

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

      function updateRect(editor, startIndex, endIndex, outer, el, inner) {

        There are no issues that match your filters.

        Category
        Status