phodal/congee

View on GitHub

Showing 200 of 421 total issues

Function dayOfYearFromWeekInfo has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function dayOfYearFromWeekInfo(config) {
        var w, weekYear, week, weekday, dow, doy, temp;

        w = config._w;
        if (w.GG != null || w.W != null || w.E != null) {
Severity: Minor
Found in ckeditor/plugins/autosave/js/moment.js - About 1 hr to fix

    Function start has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            start: function( callback ) {
                var that = this,
                    editor = this.editor,
                    doc = this.doc,
                    el, elfp, x, y;
    Severity: Minor
    Found in ckeditor/plugins/lineutils/plugin.js - About 1 hr to fix

      Function get has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              text.get = function (url, callback, errback, headers) {
                  var xhr = text.createXhr(), header;
                  xhr.open('GET', url, true);
      
                  //Allow plugins direct access to xhr headers
      Severity: Minor
      Found in scripts/libs/text.js - About 1 hr to fix

        Function applyOptions has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function applyOptions() {
        
                    if (opts.showPaletteOnly) {
                        opts.showPalette = true;
                    }
        Severity: Minor
        Found in scripts/spectrum/spectrum.js - About 1 hr to fix

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

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

            Function get_opcodes has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    this.get_opcodes = function () {
                        if (this.opcodes != null) return this.opcodes;
                        var i = 0;
                        var j = 0;
                        var answer = [];
            Severity: Minor
            Found in ckeditor/plugins/autosave/js/difflib.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                          if (dragging) {
                              // Mouseup happened outside of window
                              if (IE && doc.documentMode < 9 && !e.button) {
                                  return stop();
                              }
              Severity: Major
              Found in scripts/spectrum/spectrum.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                                if (contextSize && opcodes.length > 1 && ((idx > 0 && i == contextSize) || (idx == 0 && i == 0)) && change=="equal") {
                                    var jump = rowcnt - ((idx == 0 ? 1 : 2) * contextSize);
                                    if (jump > 1) {
                                        toprows.push(node = document.createElement("tr"));
                                        
                Severity: Major
                Found in ckeditor/plugins/autosave/js/diffview.js - About 1 hr to fix

                  Function createDate has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      function createDate (y, m, d, h, M, s, ms) {
                  Severity: Major
                  Found in ckeditor/plugins/autosave/js/moment.js - About 50 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                              if (!loose) loose = next;
                    Severity: Major
                    Found in ckeditor/plugins/markdown/js/marked.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

                        Avoid deeply nested control flow statements.
                        Open

                                                for (i = 0 ; i < context_numBits ; i++) {
                                                    context_data_val = (context_data_val << 1) | value;
                                                    if (context_data_position == bitsPerChar - 1) {
                                                        context_data_position = 0;
                                                        context_data.push(getCharFromInt(context_data_val));
                        Severity: Major
                        Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                    if (bull !== b && !(bull.length > 1 && b.length > 1)) {
                                      src = cap.slice(i + 1).join('\n') + src;
                                      i = l - 1;
                                    }
                          Severity: Major
                          Found in ckeditor/plugins/markdown/js/marked.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if (context_data_position == bitsPerChar - 1) {
                                                        context_data_position = 0;
                                                        context_data.push(getCharFromInt(context_data_val));
                                                        context_data_val = 0;
                                                    } else {
                            Severity: Major
                            Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                          if (err) {
                                                              err.requireMap = this.map;
                                                              err.requireModules = this.map.isDefine ? [this.map.id] : null;
                                                              err.requireType = this.map.isDefine ? 'define' : 'require';
                                                              return onError((this.error = err));
                              Severity: Major
                              Found in scripts/libs/require.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if (context_data_position == bitsPerChar - 1) {
                                                            context_data_position = 0;
                                                            context_data.push(getCharFromInt(context_data_val));
                                                            context_data_val = 0;
                                                        } else {
                                Severity: Major
                                Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.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

                                                            if (context_data_position == bitsPerChar - 1) {
                                                                context_data_position = 0;
                                                                context_data.push(getCharFromInt(context_data_val));
                                                                context_data_val = 0;
                                                            } else {
                                    Severity: Major
                                    Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if (mapValue) {
                                                                      mapValue = getOwn(mapValue, nameSegment);
                                                                      if (mapValue) {
                                                                          //Match, update name to the new value.
                                                                          foundMap = mapValue;
                                      Severity: Major
                                      Found in scripts/libs/require.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if (this.map.isDefine && exports === undefined) {
                                                                        cjsModule = this.module;
                                                                        if (cjsModule) {
                                                                            exports = cjsModule.exports;
                                                                        } else if (this.usingExports) {
                                        Severity: Major
                                        Found in scripts/libs/require.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language