Showing 1,896 of 2,859 total issues
Function am2
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function am2(i,x,w,j,c,n) {
Avoid deeply nested control flow statements. Open
if (value.isString()) {
result += '"';
}
Function Server
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function Server(/* [options], listener */) {
var options, listener;
if (util.isObject(arguments[0])) {
options = arguments[0];
listener = arguments[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 initialize
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
initialize : function(colorEven, colorOdd, reflection, transparency, gloss, density) {
Function onwrite
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function onwrite(stream, er) {
var state = stream._writableState;
var sync = state.sync;
var cb = state.writecb;
- 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
Avoid deeply nested control flow statements. Open
for (var i = 0; i < args.length; i++) {
var arg = args[i];
result += arg.name + ' = ';
result += refObjectToString_(response, arg.value.ref);
result += '\n';
Function ModifyPointsSet
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function ModifyPointsSet() {
if (livePoints.count < kNPoints) {
for (var i = 0; i < kNModifications; i++) {
CreateNewPoint();
}
- 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 streamWrite
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function streamWrite(algo, message, encoding, writes, len, outEnc) {
Function am4
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function am4(i,x,w,j,c,n) {
Function legacyWrite
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function legacyWrite(algo, message, encoding, writes, len, outEnc) {
Function advect
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function advect(b, d, d0, u, v, dt)
Avoid deeply nested control flow statements. Open
while ((i>=(0))) {
{
(pred_set = ((sc_state_83 = (sc_states_78[i])), (sc_state_83[(pred+(1))])));
if ((pred_set!== false))
{
Avoid deeply nested control flow statements. Open
if ((lst1 === null))
return (lst2 === null);
else
if ((lst2 === null))
return false;
Function DrawBarBase
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function DrawBarBase(color, start, end, top, bottom, transparency) {
Avoid deeply nested control flow statements. Open
if ((((conf_set = (sc_state_82[(ender+(1))])), ((conf_set!== false)?(conf_set[(BgL_sc_statezd2num_68zd2+(5))]):false))!== false))
{
(next = (sc_conf_80+(1)));
(next_set = (BgL_sc_confzd2setzd2getza2_44za2(sc_state_82, BgL_sc_statezd2num_68zd2, next)));
(conf_set_union(sc_state_82, next_set, next, BgL_sc_confzd2set_79zd2));
Function findEntry
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
CodeMap.prototype.findEntry = function(addr) {
var pageAddr = addr >>> CodeMap.PAGE_ALIGNMENT;
if (pageAddr in this.pages_) {
// Static code entries can contain "holes" of unnamed code.
// In this case, the whole library is assigned to this address.
- 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 processCodeCreation
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
type, kind, start, size, name, maybe_func) {
Function processTick
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
TickProcessor.prototype.processTick = function(pc,
ns_since_start,
is_external_callback,
tos_or_external_callback,
vmState,
Function processTickEvent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
pc, timer, unused_x, unused_y, vmstate, stack) {
Function bnpModInt
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function bnpModInt(n) {
var this_array = this.array;
if(n <= 0) return 0;
var d = BI_DV%n, r = (this.s<0)?n-1:0;
if(this.t > 0)
- 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"