mauriciabad/GradeCalc

View on GitHub

Showing 52 of 70 total issues

File script.js has 1505 lines of code (exceeds 250 allowed). Consider refactoring.
Open

Severity: Major
Found in src/scripts/script.js - About 4 days to fix

    Function readSubjectFromPopup has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
    Open

    Severity: Minor
    Found in src/scripts/script.js - About 5 hrs 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 gradeCalcAllEqual has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
    Open

    Severity: Minor
    Found in src/scripts/script.js - About 4 hrs 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 evaluationTree has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
    Open

    Severity: Minor
    Found in src/scripts/script.js - About 4 hrs 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 generateEditSubjectUIHTML has 102 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Severity: Major
    Found in src/scripts/script.js - About 4 hrs to fix

      Function editUIUpdateGrid has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
      Open

      Severity: Minor
      Found in src/scripts/script.js - About 2 hrs 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 generateEditSubjectUIHTML has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
      Open

      Severity: Minor
      Found in src/scripts/script.js - About 2 hrs 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 updateNecesaryMark has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
      Open

      Severity: Minor
      Found in src/scripts/script.js - About 2 hrs 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 isValidSubjectFromPopup has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
      Open

      Severity: Minor
      Found in src/scripts/script.js - About 2 hrs 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 getAndDisplayUserSubjects has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Severity: Minor
      Found in src/scripts/script.js - About 1 hr to fix

        Function generateInputs has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in src/scripts/script.js - About 1 hr 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 gradeCalcAllEqual has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Severity: Minor
        Found in src/scripts/script.js - About 1 hr to fix

          Function readSubjectFromPopup has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          Severity: Minor
          Found in src/scripts/script.js - About 1 hr to fix

            Function editGridFade has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            Severity: Minor
            Found in src/scripts/script.js - About 1 hr 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 editUIUpdateGrid has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Severity: Minor
            Found in src/scripts/script.js - About 1 hr to fix

              Function evaluationTree has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Severity: Minor
              Found in src/scripts/script.js - About 1 hr to fix

                Function editGridFade has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                Severity: Minor
                Found in src/scripts/script.js - About 1 hr to fix

                  Function completeSubject has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Severity: Minor
                  Found in src/scripts/script.js - About 1 hr to fix

                    Function autoUpdate has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                    Open

                    Severity: Minor
                    Found in src/scripts/script.js - About 1 hr 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 shape has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var shape = function shape(element) {
                      var list = [
                      // Square
                      function (e) {
                        var size = Math.round((Math.random() + 0.5) * 10) + 'px';
                    Severity: Minor
                    Found in lib/confetti.js - About 1 hr to fix
                      Severity
                      Category
                      Status
                      Source
                      Language