ckeditor/ckeditor5-heading

View on GitHub
src/title.js

Summary

Maintainability
B
5 hrs
Test Coverage

File title.js has 275 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */

Severity: Minor
Found in src/title.js - About 2 hrs to fix

    Function _attachPlaceholders has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _attachPlaceholders() {
            const editor = this.editor;
            const t = editor.t;
            const view = editor.editing.view;
            const viewRoot = view.document.getRoot();
    Severity: Minor
    Found in src/title.js - About 1 hr to fix

      Function _attachTabPressHandling has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _attachTabPressHandling() {
              const editor = this.editor;
              const model = editor.model;
      
              // Pressing <kbd>Tab</kbd> inside the title should move the caret to the body.
      Severity: Minor
      Found in src/title.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status