phodal/congee

View on GitHub

Showing 200 of 421 total issues

Function draggable has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function draggable(element, onmove, onstart, onstop) {
        onmove = onmove || function () { };
        onstart = onstart || function () { };
        onstop = onstop || function () { };
        var doc = document;
Severity: Major
Found in scripts/spectrum/spectrum.js - About 2 hrs to fix

    Function exec has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            exec: function( editor ) {
                var sHTML,
                    config = editor.config,
                    baseTag = config.baseHref ? '<base href="' + config.baseHref + '"/>' : '',
                    eventData;
    Severity: Major
    Found in ckeditor/plugins/preview/plugin.js - About 2 hrs to fix

      Function check has 62 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  check: function () {
                      if (!this.enabled || this.enabling) {
                          return;
                      }
      
      
      Severity: Major
      Found in scripts/libs/require.js - About 2 hrs to fix

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

            init : function(editor)
            {        
              var host='latex.codecogs.com';
              var http=('https:' == document.location.protocol ? 'https://' : 'http://');
                    
        Severity: Major
        Found in ckeditor/plugins/eqneditor/plugin.js - About 2 hrs to fix

          Function updateCounter has 61 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function updateCounter(editorInstance) {
                      var paragraphs = 0,
                          wordCount = 0,
                          charCount = 0,
                          text;
          Severity: Major
          Found in ckeditor/plugins/wordcount/plugin.js - About 2 hrs to fix

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

              var init = function () {
                /**
                 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
                 * For licensing, see LICENSE.md or http://ckeditor.com/license
                 */
            Severity: Major
            Found in scripts/app.js - About 2 hrs to fix

              Function loader has 58 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      var loader = function( pluginId, ext, allowExts, compile ) {
                          if ( arguments.length == 3 ) {
                              compile = allowExts;
                              allowExts = undefined;
                          } else if ( arguments.length == 2 ) {
              Severity: Major
              Found in scripts/libs/rv.js - About 2 hrs to fix

                Function checkLoaded has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function checkLoaded() {
                            var err, usingPathFallback,
                                waitInterval = config.waitSeconds * 1000,
                                //It is possible to disable the wait interval by using waitSeconds of 0.
                                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
                Severity: Major
                Found in scripts/libs/require.js - About 2 hrs to fix

                  Function Liner has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function Liner( editor, def ) {
                          var editable = editor.editable();
                  
                          CKEDITOR.tools.extend( this, {
                              editor: editor,
                  Severity: Major
                  Found in ckeditor/plugins/lineutils/plugin.js - About 2 hrs to fix

                    Function onLoad has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            onLoad: function() {
                                CKEDITOR.addCss(
                                    '.cke_widget_wrapper{' +
                                        'position:relative;' +
                                        'outline:none' +
                    Severity: Major
                    Found in ckeditor/plugins/widget/plugin.js - About 2 hrs to fix

                      Function stringInputToObject has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function stringInputToObject(color) {
                      
                              color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
                              var named = false;
                              if (names[color]) {
                      Severity: Major
                      Found in scripts/spectrum/spectrum.js - About 2 hrs to fix

                        Function copySingleWidget has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function copySingleWidget( widget, isCut ) {
                                var editor = widget.editor,
                                    doc = editor.document;
                        
                                // We're still handling previous copy/cut.
                        Severity: Major
                        Found in ckeditor/plugins/widget/plugin.js - About 2 hrs to fix

                          Function setupWidgetsLifecycleStart has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function setupWidgetsLifecycleStart( widgetsRepo ) {
                                  var editor = widgetsRepo.editor,
                                      processedWidgetOnly,
                                      snapshotLoaded;
                          
                          
                          Severity: Major
                          Found in ckeditor/plugins/widget/plugin.js - About 2 hrs to fix

                            Function updateUI has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function updateUI() {
                            
                                        textInput.removeClass("sp-validation-error");
                            
                                        updateHelperLocations();
                            Severity: Major
                            Found in scripts/spectrum/spectrum.js - About 2 hrs to fix

                              Function makeModuleMap has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {
                                          var url, pluginModule, suffix, nameParts,
                                              prefix = null,
                                              parentName = parentModuleMap ? parentModuleMap.name : null,
                                              originalName = name,
                              Severity: Major
                              Found in scripts/libs/require.js - About 2 hrs to fix

                                Function create__createDuration has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function create__createDuration (input, key) {
                                        var duration = input,
                                            // matching against regexp is expensive, do it on demand
                                            match = null,
                                            sign,
                                Severity: Major
                                Found in ckeditor/plugins/autosave/js/moment.js - About 2 hrs to fix

                                  Function setupWidgetsLifecycleEnd has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function setupWidgetsLifecycleEnd( widgetsRepo ) {
                                          var editor = widgetsRepo.editor,
                                              downcastingSessions = {};
                                  
                                          // Listen before htmlDP#htmlFilter is applied to cache all widgets, because we'll
                                  Severity: Major
                                  Found in ckeditor/plugins/widget/plugin.js - About 2 hrs to fix

                                    Function addWidgetCommand has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function addWidgetCommand( editor, widgetDef ) {
                                            editor.addCommand( widgetDef.name, {
                                                exec: function( editor, commandData ) {
                                                    var focused = editor.widgets.focused;
                                                    // If a widget of the same type is focused, start editing.
                                    Severity: Major
                                    Found in ckeditor/plugins/widget/plugin.js - About 2 hrs to fix

                                      Function normalize has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              function normalize(name, baseName, applyMap) {
                                                  var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex,
                                                      foundMap, foundI, foundStarMap, starI, normalizedBaseParts,
                                                      baseParts = (baseName && baseName.split('/')),
                                                      map = config.map,
                                      Severity: Major
                                      Found in scripts/libs/require.js - About 2 hrs to fix

                                        Function setupMouseObserver has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function setupMouseObserver( widgetsRepo ) {
                                                var editor = widgetsRepo.editor;
                                        
                                                editor.on( 'contentDom', function() {
                                                    var editable = editor.editable(),
                                        Severity: Major
                                        Found in ckeditor/plugins/widget/plugin.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language