IHTSDO/snomed-interaction-components

View on GitHub

Showing 340 of 6,870 total issues

Avoid too many return statements within this function.
Open

        return result;
Severity: Major
Found in external-libs/lodash.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

              return false;
    Severity: Major
    Found in external-libs/lodash.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return undefined;
      Severity: Major
      Found in external-libs/ZeroClipboard.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return stackB[length];
        Severity: Major
        Found in external-libs/lodash.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return result;
          Severity: Major
          Found in external-libs/lodash.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                      return false;
            Severity: Major
            Found in external-libs/lodash.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return jsPath;
              Severity: Major
              Found in external-libs/ZeroClipboard.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                          return stackB[length] == b;
                Severity: Major
                Found in external-libs/lodash.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                    case 30:yy_.yytext = strip(1,2); return 40;
                  Severity: Major
                  Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                              return false;
                    Severity: Major
                    Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        case 23:yy_.yytext = strip(1,2).replace(/\\"/g,'"'); return 32;
                      Severity: Major
                      Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return fn(context);
                        Severity: Major
                        Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                        return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
                                                {text: "", token: null, line: this.yylineno});
                          Severity: Major
                          Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                              case 24:yy_.yytext = strip(1,2).replace(/\\'/g,"'"); return 32;
                            Severity: Major
                            Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                case 21:this.popState(); return 24;
                              Severity: Major
                              Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  case 22:this.popState(); return 18;
                                Severity: Major
                                Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return true;
                                  Severity: Major
                                  Found in external-libs/handlebars-v1.3.0.js - About 30 mins to fix

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

                                    function favoritePanel(divElement, options) {
                                        var panel = this;
                                        this.divElement = divElement;
                                        this.options = jQuery.extend(true, {}, options);
                                        var favoriteCall = null;
                                    Severity: Minor
                                    Found in js/favoritesPlugin.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

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

                                        _utf8_encode : function (string) {
                                            string = string.replace(/\r\n/g,"\n");
                                            var utftext = "";
                                    
                                            for (var n = 0; n < string.length; n++) {
                                    Severity: Minor
                                    Found in external-libs/base64.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

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

                                        _utf8_decode : function (utftext) {
                                            var string = "";
                                            var i = 0;
                                            var c = c1 = c2 = 0;
                                    
                                    
                                    Severity: Minor
                                    Found in external-libs/base64.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