creative-connections/aurelia-bodylight-plugin

View on GitHub

Showing 366 of 552 total issues

Function attached has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

  attached() {
    //console.log('bdlmarkdownaurelia attached() src:', this.src);
    // eslint-disable-next-line new-cap
    //optionally, register customevent handler for 'contentupdate' when fromid is defined
    // eslint-disable-next-line new-cap
Severity: Minor
Found in src/elements/markdownaurelia.js - About 55 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 constructor has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

  constructor() {
    super();
    //create lambda function which is added as listener later
    this.handleValueChange = e => {
      this.value = e.detail.data[this.refindex] * this.numerator / this.denominator;
Severity: Minor
Found in src/elements/audio-on-decrease.js - About 55 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 setAnimationValue has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    setAnimationValue(objname, value) {
      //console.log('animateadobe setAnimationValue',value);
      //console.log('adobe-animate() setting window.ani.exportRoot.children[0][' + objname + '].gotoAndStop(' + value + ')');
      if (window.ani.exportRoot) {
        //resolve path from string
Severity: Minor
Found in src/elements/animate-adobe.js - About 55 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 setText has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    setText(objname, textvalue) {
      //console.log('animateadobe set text:',textvalue);
      if (window.ani.exportRoot) {
        const resolvePath = (object, path, defaultValue) => path
          .split('.')
Severity: Minor
Found in src/elements/animate-adobe.js - About 55 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 EX has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    EX : function(g, name, ctx, cx, cy, color, radius) {
Severity: Major
Found in src/utils/dygraph.js - About 50 mins to fix

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

        CIRCLE : function(g, name, ctx, cx, cy, color, radius) {
    Severity: Major
    Found in src/utils/dygraph.js - About 50 mins to fix

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

          DEFAULT : function(g, name, ctx, canvasx, canvasy, color, radius) {
      Severity: Major
      Found in src/utils/dygraph.js - About 50 mins to fix

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

            ctx, sides, radius, cx, cy, rotationRadians, delta) {
        Severity: Major
        Found in src/utils/dygraph.js - About 50 mins to fix

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

              PLUS : function(g, name, ctx, cx, cy, color, radius) {
          Severity: Major
          Found in src/utils/dygraph.js - About 50 mins to fix

            Function findPosY has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
            Open

            Dygraph.findPosY = function(obj) {
                var curtop = 0;
                if(obj.offsetParent) {
                    var copyObj = obj;
                    while(1) {
            Severity: Minor
            Found in src/utils/dygraph.js - About 45 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 numericLinearTicks has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            Dygraph.numericLinearTicks = function (a, b, pixels, opts, dygraph, vals) {
            Severity: Minor
            Found in src/utils/dygraph.js - About 45 mins to fix

              Function _evaluateLineCharts has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

              DygraphLayout.prototype._evaluateLineCharts = function() {
                  // An array to keep track of how many points will be drawn for each set.
                  // This will allow for the canvas renderer to not have to check every point
                  // for every data set since the points are added in order of the sets in
                  // datasets.
              Severity: Minor
              Found in src/utils/dygraph.js - About 45 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 _dashedLine has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              DygraphCanvasRenderer.prototype._dashedLine = function(ctx, x, y, x2, y2, pattern) {
              Severity: Minor
              Found in src/utils/dygraph.js - About 45 mins to fix

                Function resize has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                Dygraph.prototype.resize = function(width, height) {
                    if (this.resize_lock) {
                        return;
                    }
                    this.resize_lock = true;
                Severity: Minor
                Found in src/utils/dygraph.js - About 45 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 destroy has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                Dygraph.prototype.destroy = function() {
                    var removeRecursive = function(node) {
                        while (node.hasChildNodes()) {
                            removeRecursive(node.firstChild);
                            node.removeChild(node.firstChild);
                Severity: Minor
                Found in src/utils/dygraph.js - About 45 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 dateTicker has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                Dygraph.dateTicker = function (a, b, pixels, opts, dygraph, vals) {
                Severity: Minor
                Found in src/utils/dygraph.js - About 45 mins to fix

                  Function _drawPointsOnLine has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  DygraphCanvasRenderer.prototype._drawPointsOnLine = function(ctx, pointsOnLine, drawPointCallback, setName, color, pointSize) {
                  Severity: Minor
                  Found in src/utils/dygraph.js - About 45 mins to fix

                    Function numericTicks has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    Dygraph.numericTicks = function (a, b, pixels, opts, dygraph, vals) {
                    Severity: Minor
                    Found in src/utils/dygraph.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if (typeof(self[k]) != 'object' || self[k] === null) {
                                              self[k] = {};
                                          }
                      Severity: Major
                      Found in src/utils/dygraph.js - About 45 mins to fix

                        Function constructor has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                            constructor() {
                              //console.log('animate-adobe constructor()');
                              //fix issue - some bindings not detached
                              //window.animatebindings = [];
                              this.handleValueChange = e => {
                        Severity: Minor
                        Found in src/elements/animate-adobe.js - About 45 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