phodal/congee

View on GitHub

Showing 200 of 421 total issues

Avoid too many return statements within this function.
Open

                    return localRequire;
Severity: Major
Found in scripts/libs/require.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return this.renderer.blockquote(body);
    Severity: Major
    Found in ckeditor/plugins/markdown/js/marked.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return '<p>An error occured:</p><pre>'
              + escape(e.message + '', true)
              + '</pre>';
      Severity: Major
      Found in ckeditor/plugins/markdown/js/marked.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return this.renderer.list(body, ordered);
        Severity: Major
        Found in ckeditor/plugins/markdown/js/marked.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return { h: match[1], s: match[2], v: match[3], a: match[4] };
          Severity: Major
          Found in scripts/spectrum/spectrum.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return {
                            r: parseIntFromHex(match[1]),
                            g: parseIntFromHex(match[2]),
                            b: parseIntFromHex(match[3]),
                            format: named ? "name" : "hex"
            Severity: Major
            Found in scripts/spectrum/spectrum.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return this.renderer.table(header, body);
              Severity: Major
              Found in ckeditor/plugins/markdown/js/marked.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return this.renderer.paragraph(this.parseText());
                Severity: Major
                Found in ckeditor/plugins/markdown/js/marked.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                      return '[' + join( object.map( function( element ) {
                                          return walk( element, filter, indent, nextIndent, seen.slice() );
                                      } ) ) + ']';
                  Severity: Major
                  Found in scripts/libs/rv.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return this.renderer.html(html);
                    Severity: Major
                    Found in ckeditor/plugins/markdown/js/marked.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return this.renderer.paragraph(this.inline.output(this.token.text));
                      Severity: Major
                      Found in ckeditor/plugins/markdown/js/marked.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                                    return false;
                        Severity: Major
                        Found in ckeditor/plugins/widget/plugin.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                                              return;
                          Severity: Major
                          Found in ckeditor/plugins/widget/plugin.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return null;
                            Severity: Major
                            Found in ckeditor/plugins/widget/plugin.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                                          return CKEDITOR.LINEUTILS_BEFORE | CKEDITOR.LINEUTILS_AFTER;
                              Severity: Major
                              Found in ckeditor/plugins/widget/plugin.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return wrapper;
                                Severity: Major
                                Found in ckeditor/plugins/widget/plugin.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                                      return;
                                  Severity: Major
                                  Found in ckeditor/plugins/widget/plugin.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                        return widgetDef.styleToAllowedContentRules( this );
                                    Severity: Major
                                    Found in ckeditor/plugins/widget/plugin.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return null;
                                      Severity: Major
                                      Found in ckeditor/plugins/widget/plugin.js - About 30 mins to fix

                                        Function _hideAfterTimeout has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                            _hideAfterTimeout: function() {
                                                var notification = this,
                                                    duration;
                                        
                                                if ( this._hideTimeoutId ) {
                                        Severity: Minor
                                        Found in ckeditor/plugins/notification/plugin.js - About 25 mins to fix

                                        Cognitive Complexity

                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                        A method's cognitive complexity is based on a few simple rules:

                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                        • Code is considered more complex for each "break in the linear flow of the code"
                                        • Code is considered more complex when "flow breaking structures are nested"

                                        Further reading

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language