Showing 16 of 42 total issues
Function __convex__
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
var __convex__ = function ( ccwc ) {
var convex = function ( a, i, j ) {
var x, y, z, k, n;
- 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 __convex__
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
var __convex__ = function ( ccwc ) {
var convex = function ( a, i, j ) {
var x, y, z, k, n;
Function convex
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
var convex = function ( a, i, j ) {
var x, y, z, k, n;
n = j - i;
Function rayshoot
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
let rayshoot = function ( d , m , A , b , z , r ) {
let i = 0 ;
let j = m ;
let w ;
- 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 det3
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
var det3 = function ( A00 , A01 , A02 , A10 , A11 , A12 , A20 , A21 , A22 ) {
Function __rc__
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
var __rc__ = function ( ris ) {
/**
* Ray casting algorithm.
* ==
- 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 rayshoot
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
let rayshoot = function ( d , m , A , b , z , r ) {
Function rc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
var rc = function ( polygon , i , j , p , q ) {
Function piq
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
var piq = function ( x , a , b , c , d ) {
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
return ccwc( x, y, z );
Avoid too many return
statements within this function. Open
return ccwc( z, x, y );
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
return ccwc( y, z, x );
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
return false;