Showing 16 of 30 total issues
Function Abaco
has a Cognitive Complexity of 140 (exceeds 5 allowed). Consider refactoring. Open
Open
exports.Abaco = ( function () {
var isArray = Array.isArray
, min = Math.min
, pow = Math.pow
/*
- 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 Abaco
has 239 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.Abaco = ( function () {
var isArray = Array.isArray
, min = Math.min
, pow = Math.pow
/*
Function xparseFloat
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, xparseFloat =function ( buff, base, start, end ) {
var b = buff
, blen = b.length
, bs = base || 10
, t = npow[ bs ]
Function parseFloat
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, parseFloat = function ( buff, base, start, end ) {
var b = buff
, blen = b.length
, bs = base || 10
, t = npow[ bs ]
Function xparseInt
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, xparseInt = function ( buff, base, start, end ) {
var b = buff
, blen = b.length
, bs = base || 10
, t = tpow[ bs ]
Function parseInt
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, parseInt = function ( buff, base, start, end ) {
var b = buff
, blen = b.length
, bs = base || 10
, t = tpow[ bs ]
Avoid too many return
statements within this function. Open
Open
return sum * sign;
Avoid too many return
statements within this function. Open
Open
return sum * sign;
Avoid too many return
statements within this function. Open
Open
if ( n >= bs ) return NaN;
Avoid too many return
statements within this function. Open
Open
return sign * ( ipart + fpart );
Avoid too many return
statements within this function. Open
Open
if ( n >= bs ) return NaN;
Avoid too many return
statements within this function. Open
Open
return sign * ( ipart + fpart );
Avoid too many return
statements within this function. Open
Open
if ( n >= bs ) return NaN;
Avoid too many return
statements within this function. Open
Open
return sum * sign;
Avoid too many return
statements within this function. Open
Open
return sign * ( ipart + fpart );
Avoid too many return
statements within this function. Open
Open
return sign * ( ipart + fpart );