ckeditor/ckeditor5-heading

View on GitHub

Showing 4 of 4 total issues

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 init has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        init() {
            const editor = this.editor;
            const t = editor.t;
            const options = getLocalizedOptions( editor );
            const defaultTitle = t( 'Choose heading' );
    Severity: Major
    Found in src/headingui.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
          Severity
          Category
          Status
          Source
          Language