appbaseio/mirage

View on GitHub

Showing 357 of 7,143 total issues

Function sizePane has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

,    sizePane = function (evt_or_pane, size, skipCallback, noAnimation, force) {
Severity: Minor
Found in assets/vendor/jquery.layout/jquery.layout.js - About 35 mins to fix

    Function switchClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        switchClass: function( remove, add, speed, easing, callback) {
    Severity: Minor
    Found in assets/vendor/jquery.layout/jquery-ui.js - About 35 mins to fix

      Function createQuery has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

        createQuery(val, childExists) {
          var queryParam = {
            query: "*",
            field: "*",
            queryFlag: true,
      Severity: Minor
      Found in app/queryBlocks/queryBlocks.component.ts - About 35 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 ngOnInit has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          ngOnInit() {
              this.options = JSON.parse(JSON.stringify(this.default_options));
              try {
                  if (this.appliedQuery[this.current_query][this.selectedField]) {
                      this.inputs.input.value = this.appliedQuery[this.current_query][this.fieldName].value;
      Severity: Minor
      Found in app/queryBlocks/singlequery/queries/span_term.query.ts - About 35 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 ngOnInit has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          ngOnInit() {
              this.options = JSON.parse(JSON.stringify(this.default_options));
              try {
                  if(this.appliedQuery[this.current_query]['field']) {
                      this.appliedQuery[this.current_query]['field'] = this.fieldName;
      Severity: Minor
      Found in app/queryBlocks/singlequery/queries/missing.query.ts - About 35 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 ngOnInit has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          ngOnInit() {
              this.options = JSON.parse(JSON.stringify(this.default_options));
              try {
                  if(this.appliedQuery['range'][this.fieldName]['gte']) {
                      this.inputs.gte.value = this.appliedQuery['range'][this.fieldName]['gte']
      Severity: Minor
      Found in app/queryBlocks/singlequery/queries/range.query.ts - About 35 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 ngOnInit has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          ngOnInit() {
              this.options = JSON.parse(JSON.stringify(this.default_options));
              try {
                  if (this.appliedQuery[this.current_query]['match']['span_term'][this.selectedField]) {
                      this.inputs.input.value = this.appliedQuery[this.current_query]['match']['span_term'][this.fieldName].value;
      Severity: Minor
      Found in app/queryBlocks/singlequery/queries/span_first.query.ts - About 35 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 ngOnInit has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          ngOnInit() {
              this.options = JSON.parse(JSON.stringify(this.default_options));
              try {
                  if(this.appliedQuery['range'][this.fieldName]['lt']) {
                      this.inputs.lt.value = this.appliedQuery['range'][this.fieldName]['lt']
      Severity: Minor
      Found in app/queryBlocks/singlequery/queries/lt.query.ts - About 35 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 ngOnInit has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          ngOnInit() {
              this.options = JSON.parse(JSON.stringify(this.default_options));
              try {
                  if(this.appliedQuery['range'][this.fieldName][this.current_query]) {
                      this.inputs.gt.value = this.appliedQuery['range'][this.fieldName]['gt'];
      Severity: Minor
      Found in app/queryBlocks/singlequery/queries/gt.query.ts - About 35 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

      Avoid too many return statements within this function.
      Open

        if (y < x) return 1
      Severity: Major
      Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
        Severity: Major
        Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return fromArrayLike(that, obj.data)
          Severity: Major
          Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return 0;
            Severity: Major
            Found in assets/vendor/jquery.layout/jquery.layout.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return false; // no match, so cannot - or don't need to - track zoom
              Severity: Major
              Found in assets/vendor/jquery.layout/jquery.layout.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  if (x < y) return -1
                Severity: Major
                Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
                  Severity: Major
                  Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
                    Severity: Major
                    Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        return 0
                      Severity: Major
                      Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
                        Severity: Major
                        Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return calc(sW, cW);
                          Severity: Major
                          Found in assets/vendor/jquery.layout/jquery.layout.js - About 30 mins to fix
                            Severity
                            Category
                            Status
                            Source
                            Language