Showing 9 of 13 total issues
Function base
has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring. Open
var base = function(A, m, n) {
var i, j, g, f, swap, Ai, Aij, Ah, Af, Afj;
l : for (j = 0; j < m; ++j) {
- Read upRead up
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 simplex
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
var simplex = function(A, m, n) {
var i, j, Am, Ah, Ahbo, Af, Afj, no, na, bo, ba, Ambo, k;
Am = A[m];
- Read upRead up
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 normalize_t
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
var normalize_t = function(fn){
var normalize = function(A, m, n) {
var swap, i, j, Ai, Ak, Am, k = n - 1;
- Read upRead up
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 simplex
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
var simplex = function(A, m, n) {
var i, j, Am, Ah, Ahbo, Af, Afj, no, na, bo, ba, Ambo, k;
Am = A[m];
Function base
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
var base = function(A, m, n) {
var i, j, g, f, swap, Ai, Aij, Ah, Af, Afj;
l : for (j = 0; j < m; ++j) {
Avoid deeply nested control flow statements. Open
for ( ++g; g <= n; ++g) Af[g] -= Afj * Ah[g];
Avoid deeply nested control flow statements. Open
for (g = 0; g < j; ++g) Af[g] -= Afj * Ah[g];
Avoid deeply nested control flow statements. Open
for ( ++g; g <= n; ++g) Af[g] -= Afj * Ah[g];
Avoid deeply nested control flow statements. Open
for (g = 0; g < j; ++g) Af[g] -= Afj * Ah[g];