phodal/congee

View on GitHub

Showing 200 of 421 total issues

Function load has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    req.load = function (context, moduleName, url) {
        var config = (context && context.config) || {},
            node;
        if (isBrowser) {
            //In the browser so use a script tag
Severity: Minor
Found in scripts/libs/require.js - About 1 hr to fix

    Function diffString has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function diffString( o, n ) {
      o = o.replace(/\s+$/, '');
      n = n.replace(/\s+$/, '');
    
      var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/) );
    Severity: Minor
    Found in ckeditor/plugins/autosave/js/jsdiff.js - About 1 hr to fix

      Function __chain_b has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              this.__chain_b = function () {
                  var b = this.b;
                  var n = b.length;
                  var b2j = this.b2j = {};
                  var populardict = {};
      Severity: Minor
      Found in ckeditor/plugins/autosave/js/difflib.js - About 1 hr to fix

        Function load has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        load: function( name, req, load, config ) {
                            var path = req.toUrl( name );
                            var queryString = '';
                            if ( path.indexOf( '?' ) != -1 ) {
                                queryString = path.substr( path.indexOf( '?' ) );
        Severity: Minor
        Found in scripts/libs/rv.js - About 1 hr to fix

          Function configFromArray has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function configFromArray (config) {
                  var i, date, input = [], currentDate, yearToUse;
          
                  if (config._d) {
                      return;
          Severity: Minor
          Found in ckeditor/plugins/autosave/js/moment.js - About 1 hr to fix

            Function toString has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    toString: function(format) {
                        var formatSet = !!format;
                        format = format || this._format;
            
                        var formattedString = false;
            Severity: Minor
            Found in scripts/spectrum/spectrum.js - About 1 hr to fix

              Function getStyle has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      getStyle: function( uid, type ) {
                          var rel = this.relations[ uid ],
                              loc = this.locations[ uid ][ type ],
                              styles = {},
                              hdiff;
              Severity: Minor
              Found in ckeditor/plugins/lineutils/plugin.js - About 1 hr to fix

                Function localRequire has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                function localRequire(deps, callback, errback) {
                                    var id, map, requireMod;
                
                                    if (options.enableBuildCallback && callback && isFunction(callback)) {
                                        callback.__requireJsBuild = true;
                Severity: Minor
                Found in scripts/libs/require.js - About 1 hr to fix

                  Function locate has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          locate: ( function() {
                              function locateSibling( rel, type ) {
                                  var sib = rel.element[ type === CKEDITOR.LINEUTILS_BEFORE ? 'getPrevious' : 'getNext' ]();
                  
                                  // Return the middle point between siblings.
                  Severity: Minor
                  Found in ckeditor/plugins/lineutils/plugin.js - About 1 hr to fix

                    Function editorConfig has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        CKEDITOR.editorConfig = function (config) {
                          config.allowedContent = true;
                          config.language = 'zh-cn';
                          //config.skin = 'minimalist';
                          config.pasteFilter = null;
                    Severity: Minor
                    Found in scripts/app.js - About 1 hr to fix

                      Function onBlockWidgetDrag has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function onBlockWidgetDrag( evt ) {
                              var finder = this.repository.finder,
                                  locator = this.repository.locator,
                                  liner = this.repository.liner,
                                  editor = this.editor,
                      Severity: Minor
                      Found in ckeditor/plugins/widget/plugin.js - About 1 hr to fix

                        Function setupWidget has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function setupWidget( widget, widgetDef ) {
                                setupWrapper( widget );
                                setupParts( widget );
                                setupEditables( widget );
                                setupMask( widget );
                        Severity: Minor
                        Found in ckeditor/plugins/widget/plugin.js - About 1 hr to fix

                          Function spectrum has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              $.fn.spectrum = function (opts, extra) {
                          
                                  if (typeof opts == "string") {
                          
                                      var returnValue = this;
                          Severity: Minor
                          Found in scripts/spectrum/spectrum.js - About 1 hr to fix

                            Function iterator has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        iterator: function( element ) {
                                            var upcast, upcasted,
                                                data,
                                                i,
                                                upcastsLength,
                            Severity: Minor
                            Found in ckeditor/plugins/widget/plugin.js - About 1 hr to fix

                              Function updateHelperLocations has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function updateHelperLocations() {
                                          var s = currentSaturation;
                                          var v = currentValue;
                              
                                          if(allowEmpty && isEmpty) {
                              Severity: Minor
                              Found in scripts/spectrum/spectrum.js - About 1 hr to fix

                                Function completeLoad has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                            completeLoad: function (moduleName) {
                                                var found, args, mod,
                                                    shim = getOwn(config.shim, moduleName) || {},
                                                    shExports = shim.exports;
                                
                                
                                Severity: Minor
                                Found in scripts/libs/require.js - About 1 hr to fix

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

                                      init: function (config) {
                                        var Grid = Ractive.extend({
                                          isolated: false,
                                          template: hrTemplate,
                                          data: {
                                  Severity: Minor
                                  Found in scripts/views/hrView.js - About 1 hr to fix

                                    Function walk has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                function walk( object, filter, indent, currentIndent, seen ) {
                                                    var nextIndent = currentIndent + indent;
                                                    object = filter ? filter( object ) : object;
                                                    switch ( typeof object ) {
                                                        case 'string':
                                    Severity: Minor
                                    Found in scripts/libs/rv.js - About 1 hr to fix

                                      Function diffString2 has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function diffString2( o, n ) {
                                        o = o.replace(/\s+$/, '');
                                        n = n.replace(/\s+$/, '');
                                      
                                        var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/) );
                                      Severity: Minor
                                      Found in ckeditor/plugins/autosave/js/jsdiff.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                    if ((readable && ! bestIsReadable) ||
                                                        (readable && bestIsReadable && score > bestScore) ||
                                                        ((! readable) && (! bestIsReadable) && score > bestScore)) {
                                                        bestIsReadable = readable;
                                                        bestScore = score;
                                        Severity: Critical
                                        Found in scripts/spectrum/spectrum.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language