phodal/congee

View on GitHub
ckeditor/plugins/floating-tools/plugin.js

Summary

Maintainability
D
2 days
Test Coverage

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

        init: function( editor ) {


            /**
             * Create the UI elements required by this plugin
Severity: Major
Found in ckeditor/plugins/floating-tools/plugin.js - About 1 day to fix

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

    /**
     * Floating-Tools
     * Author: Philipp Stracker (2013)
     * Project page: http://stracker-phil.github.com/Floating-Tools/
     */
    Severity: Minor
    Found in ckeditor/plugins/floating-tools/plugin.js - About 3 hrs to fix

      Avoid deeply nested control flow statements.
      Open

                                      if ( !groupStarted ) {
                                          output.push( '<span class="cke_toolgroup" role="presentation">' );
                                          groupStarted = 1;
                                      }
      Severity: Major
      Found in ckeditor/plugins/floating-tools/plugin.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                        if ( index > 0 ) {
                                            toolbarObj.previous = toolbars[ index - 1 ];
                                            toolbarObj.previous.next = toolbarObj;
                                        }
        Severity: Major
        Found in ckeditor/plugins/floating-tools/plugin.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      } else if ( groupStarted ) {
                                          output.push( '</span>' );
                                          groupStarted = 0;
                                      }
          Severity: Major
          Found in ckeditor/plugins/floating-tools/plugin.js - About 45 mins to fix

            There are no issues that match your filters.

            Category
            Status