CaffGeek/MBACNationals

View on GitHub
Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpview/plugin.js

Summary

Maintainability
B
6 hrs
Test Coverage

File plugin.js has 337 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* global tinymce */
/**
 * WordPress View plugin.
 */
tinymce.PluginManager.add( 'wpview', function( editor ) {

    Avoid deeply nested control flow statements.
    Open

                        if ( container.nextSibling ) {
                            return;
                        }
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpview/plugin.js - About 45 mins to fix

      Consider simplifying this complex logical expression.
      Open

                      if ( ! range.collapsed || ( range.startOffset === 0 && container.length ) ||
                          container.nextSibling ||
                          ( container.nodeType === 3 && range.startOffset !== container.length ) ) { // Not at the end of the current range
      
                          return;
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpview/plugin.js - About 40 mins to fix

        Avoid too many return statements within this function.
        Open

                                return;
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpview/plugin.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                              return;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpview/plugin.js - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status