Showing 43 of 43 total issues

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

export default function e3CalculateChanges(previousArr, newArr) {
  let toRemove = Object.create(null);
  let additions = [];
  let updates = [];
  let removals = [];
Severity: Minor
Found in addon/utils/e3-calculate-changes.js - About 1 hr to fix

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[5] = A[3] * B[2] + A[4] * B[5] + A[5] * B[8];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 9..9
    addon/utils/shadow/matrix-math.js on lines 10..10
    addon/utils/shadow/matrix-math.js on lines 11..11
    addon/utils/shadow/matrix-math.js on lines 12..12
    addon/utils/shadow/matrix-math.js on lines 13..13
    addon/utils/shadow/matrix-math.js on lines 15..15
    addon/utils/shadow/matrix-math.js on lines 16..16
    addon/utils/shadow/matrix-math.js on lines 17..17

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[0] = A[0] * B[0] + A[1] * B[3] + A[2] * B[6];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 10..10
    addon/utils/shadow/matrix-math.js on lines 11..11
    addon/utils/shadow/matrix-math.js on lines 12..12
    addon/utils/shadow/matrix-math.js on lines 13..13
    addon/utils/shadow/matrix-math.js on lines 14..14
    addon/utils/shadow/matrix-math.js on lines 15..15
    addon/utils/shadow/matrix-math.js on lines 16..16
    addon/utils/shadow/matrix-math.js on lines 17..17

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[2] = A[0] * B[2] + A[1] * B[5] + A[2] * B[8];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 9..9
    addon/utils/shadow/matrix-math.js on lines 10..10
    addon/utils/shadow/matrix-math.js on lines 12..12
    addon/utils/shadow/matrix-math.js on lines 13..13
    addon/utils/shadow/matrix-math.js on lines 14..14
    addon/utils/shadow/matrix-math.js on lines 15..15
    addon/utils/shadow/matrix-math.js on lines 16..16
    addon/utils/shadow/matrix-math.js on lines 17..17

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[1] = A[0] * B[1] + A[1] * B[4] + A[2] * B[7];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 9..9
    addon/utils/shadow/matrix-math.js on lines 11..11
    addon/utils/shadow/matrix-math.js on lines 12..12
    addon/utils/shadow/matrix-math.js on lines 13..13
    addon/utils/shadow/matrix-math.js on lines 14..14
    addon/utils/shadow/matrix-math.js on lines 15..15
    addon/utils/shadow/matrix-math.js on lines 16..16
    addon/utils/shadow/matrix-math.js on lines 17..17

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[7] = A[6] * B[1] + A[7] * B[4] + A[8] * B[7];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 9..9
    addon/utils/shadow/matrix-math.js on lines 10..10
    addon/utils/shadow/matrix-math.js on lines 11..11
    addon/utils/shadow/matrix-math.js on lines 12..12
    addon/utils/shadow/matrix-math.js on lines 13..13
    addon/utils/shadow/matrix-math.js on lines 14..14
    addon/utils/shadow/matrix-math.js on lines 15..15
    addon/utils/shadow/matrix-math.js on lines 17..17

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[8] = A[6] * B[2] + A[7] * B[5] + A[8] * B[8];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 9..9
    addon/utils/shadow/matrix-math.js on lines 10..10
    addon/utils/shadow/matrix-math.js on lines 11..11
    addon/utils/shadow/matrix-math.js on lines 12..12
    addon/utils/shadow/matrix-math.js on lines 13..13
    addon/utils/shadow/matrix-math.js on lines 14..14
    addon/utils/shadow/matrix-math.js on lines 15..15
    addon/utils/shadow/matrix-math.js on lines 16..16

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[3] = A[3] * B[0] + A[4] * B[3] + A[5] * B[6];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 9..9
    addon/utils/shadow/matrix-math.js on lines 10..10
    addon/utils/shadow/matrix-math.js on lines 11..11
    addon/utils/shadow/matrix-math.js on lines 13..13
    addon/utils/shadow/matrix-math.js on lines 14..14
    addon/utils/shadow/matrix-math.js on lines 15..15
    addon/utils/shadow/matrix-math.js on lines 16..16
    addon/utils/shadow/matrix-math.js on lines 17..17

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[4] = A[3] * B[1] + A[4] * B[4] + A[5] * B[7];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 9..9
    addon/utils/shadow/matrix-math.js on lines 10..10
    addon/utils/shadow/matrix-math.js on lines 11..11
    addon/utils/shadow/matrix-math.js on lines 12..12
    addon/utils/shadow/matrix-math.js on lines 14..14
    addon/utils/shadow/matrix-math.js on lines 15..15
    addon/utils/shadow/matrix-math.js on lines 16..16
    addon/utils/shadow/matrix-math.js on lines 17..17

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 9 locations. Consider refactoring.
    Open

      result[6] = A[6] * B[0] + A[7] * B[3] + A[8] * B[6];
    Severity: Major
    Found in addon/utils/shadow/matrix-math.js and 8 other locations - About 1 hr to fix
    addon/utils/shadow/matrix-math.js on lines 9..9
    addon/utils/shadow/matrix-math.js on lines 10..10
    addon/utils/shadow/matrix-math.js on lines 11..11
    addon/utils/shadow/matrix-math.js on lines 12..12
    addon/utils/shadow/matrix-math.js on lines 13..13
    addon/utils/shadow/matrix-math.js on lines 14..14
    addon/utils/shadow/matrix-math.js on lines 16..16
    addon/utils/shadow/matrix-math.js on lines 17..17

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 55.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

    export default function pathFromCommands(commands) {
      let svgCommands = commands.map((command, i) => {
        let name = '';
        if (command.length === 2) {
          name = i === 0 ? 'M' : 'L';
    Severity: Minor
    Found in addon/utils/shadow/types/svg/path-from-commands.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 shadowScalesOrdinal has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

    export default function shadowScalesOrdinal(range = [0,1], domain = [0,1], options = {}) {
      let {banding, outerPadding, padding, sort} = options;
      let spaceBetween = 0;
      let [r0, r1] = range;
    
    
    Severity: Minor
    Found in addon/utils/shadow/scales/ordinal.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

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    export default function e3HelpersScaleEnd(attr) {
      return function() {
        let scale = this.getAttr(attr);
        if (scale) {
          return scale.range[1];
    Severity: Minor
    Found in addon/utils/e3-helpers/scale/end.js and 1 other location - About 50 mins to fix
    addon/utils/e3-helpers/scale/start.js on lines 1..8

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 52.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    export default function e3HelpersScaleStart(attr) {
      return function() {
        let scale = this.getAttr(attr);
        if (scale) {
          return scale.range[0];
    Severity: Minor
    Found in addon/utils/e3-helpers/scale/start.js and 1 other location - About 50 mins to fix
    addon/utils/e3-helpers/scale/end.js on lines 1..8

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 52.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

    function mouseMoveEvents(current, previous) {
      /*
        - #if mouseDownEvent
          - dispatch drag on prevMouseDownEvent.setTarget
          - Copy the mouseDownEvent from prev to current
    Severity: Minor
    Found in addon/utils/shadow/event.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

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

      unregister(child) {
        get(this, 'children').removeObject(child);
        get(this, 'stage').remove(get(child, 'shadow'));
      },
    Severity: Minor
    Found in addon/components/e3-container.js and 1 other location - About 40 mins to fix
    addon/components/e3-container.js on lines 61..64

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 48.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

      register(child) {
        get(this, 'children').pushObject(child);
        get(this, 'stage').add(get(child, 'shadow'));
      },
    Severity: Minor
    Found in addon/components/e3-container.js and 1 other location - About 40 mins to fix
    addon/components/e3-container.js on lines 69..72

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 48.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

      render(parentContext, type, parentMatrix, cumMatrix, event) {
    Severity: Minor
    Found in addon/utils/shadow/renderable.js - About 35 mins to fix

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

        render(parentContext, type, attrs, parentMatrix, event) {
      Severity: Minor
      Found in addon/utils/shadow/group.js - About 35 mins to fix

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

        function interpolateHash(hashA, hashB, percent) {
          let resHash = {};
          let key;
        
          // First, interpolate all the keys from hash A.
        Severity: Minor
        Found in addon/utils/e3-interpolate.js - 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

        Severity
        Category
        Status
        Source
        Language