Showing 623 of 1,229 total issues
Function addNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
addNode: function(node, data, i, prefix, settings) {
Function def
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
sigma.canvas.edges.def = function(edge, source, target, context, settings) {
Function Before
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
_types.Before = function(callExpr, dep, tree, include, forest) {
Function leave
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
leave: function(n, p, c) {
if (n.modifier) {
if (n.modifier.target === 'signature') {
return bld.signatureModifier(n.name);
- 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 d3_layout_hierarchyVisitBefore
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function d3_layout_hierarchyVisitBefore(node, callback) {
var nodes = [ node ];
while ((node = nodes.pop()) != null) {
callback(node);
if ((children = node.children) && (n = children.length)) {
- 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 parseArgs
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function parseArgs(args) {
function options() {
- 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 url
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
, url: function(name) {
return function(vals, cb) {
try {
var mapped = vals.map(function(val) {
var purl = urlparse(val)
- 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 d3_layout_hierarchyVisitAfter
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function d3_layout_hierarchyVisitAfter(node, callback) {
var nodes = [ node ], nodes2 = [];
while ((node = nodes.pop()) != null) {
nodes2.push(node);
if ((children = node.children) && (n = children.length)) {
- 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 decypherPath
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function decypherPath(path, _dirname) {
var filepath = pth.resolve(_dirname, path);
if (fs.existsSync(filepath)) {
- 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 extractUpOnly
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function extractUpOnly(tree, id) {
var _n = {};
var __n = {};
var _d = {};
- 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 extractDown
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function extractDown(tree, id) {
var _n = {};
var __n = {};
var _d = {};
- 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 VariableDeclarator
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
_types.VariableDeclarator = function(n, t) {
// TODO we might not find Assignment dependency, but there is still other dependency, like VariableDeclarator
// but if variable is global, need to put it in a different chain of compilation.
// We could return {global: [], local: []} and a peeler function to plug everything correctly by merging stuffs.
- 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 extractDown
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function extractDown(tree, id) {
var _n = {};
var __n = {};
var _d = {};
- 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 extractUpOnly
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function extractUpOnly(tree, id) {
var _n = {};
var __n = {};
var _d = {};
- 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 bench
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function bench(ITERATION) {
// LOOP
start = time.now();
for(var i=0; i < ITERATION; i++){
loop();
- 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 too many return
statements within this function. Open
if (r > t1) return;
Avoid too many return
statements within this function. Open
return (rfocx + lfocx) / 2;
Avoid too many return
statements within this function. Open
if (!dy && r > 0) return;
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
if (r < t0) return;