aureooms/js-polynomial

View on GitHub

Showing 11 of 11 total issues

Function mul has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

    const mul = function ( p , pi , pj , q , qi , qj , r , ri , rj ) {
Severity: Major
Found in src/mul/mul.js - About 1 hr to fix

    Function bdiv has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        const bdiv = function ( b , bi , bj , q , qi , qj , r , ri , rj ) {
    Severity: Major
    Found in src/div/bdiv.js - About 1 hr to fix

      Function badd has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          const badd = function ( p , pi , pj , q , qi , qj , r , ri , rj ) {
      Severity: Major
      Found in src/add/badd.js - About 1 hr to fix

        Function ladd has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            const ladd = function ( p , pi , pj , q , qi , qj , r , ri , rj ) {
        Severity: Major
        Found in src/add/ladd.js - About 1 hr to fix

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

          export function __evaluate__ ( mov , imov , iadd , mul , imul ) {
          
              /**
               * Evaluates little endian polynomial [i , j[ for x.
               *
          Severity: Minor
          Found in src/evaluate/evaluate.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 iladd has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              const iladd = function ( p , pi , pj , q , qi , qj ) {
          Severity: Minor
          Found in src/add/iladd.js - About 45 mins to fix

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

            export function _bdiv ( iszero , iadd , isubmul , izero ) {
            
                /**
                 * Big endian dense polynomial division.
                 *
            Severity: Minor
            Found in src/div/bdiv.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 ibadd has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                var ibadd = function ( p , pi , pj , q , qi , qj ) {
            Severity: Minor
            Found in src/add/ibadd.js - About 45 mins to fix

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

                  var horner = function ( p , i , j , x , y ) {
              Severity: Minor
              Found in src/evaluate/horner.js - About 35 mins to fix

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

                export function __evaluate__ ( mov , imov , iadd , mul , imul ) {
                Severity: Minor
                Found in src/evaluate/evaluate.js - About 35 mins to fix

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

                      var evaluate = function ( p , i , j , x , y ) {
                  Severity: Minor
                  Found in src/evaluate/evaluate.js - About 35 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language