ckeditor/ckeditor5-block-quote

View on GitHub
src/blockquoteediting.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function init has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    init() {
        const editor = this.editor;
        const schema = editor.model.schema;

        editor.commands.add( 'blockQuote', new BlockQuoteCommand( editor ) );
Severity: Minor
Found in src/blockquoteediting.js - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                                if ( child.is( 'blockQuote' ) && !schema.checkChild( writer.createPositionBefore( child ), child ) ) {
                                    writer.unwrap( child );
    
                                    return true;
                                }
    Severity: Major
    Found in src/blockquoteediting.js - About 45 mins to fix

      Avoid too many return statements within this function.
      Open

                  return false;
      Severity: Major
      Found in src/blockquoteediting.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status