Function illumine
has a Cognitive Complexity of 71 (exceeds 5 allowed). Consider refactoring. Wontfix
function illumine(text) {
let output,
type = typeof text;
// Coerce entry to string primitive capable of being altered or exit.
- 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 igniculus
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Wontfix
function igniculus(options) {
/* Draft all format sequences from the provided or default
* configuration and save them.
*/
- 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
File index.js
has 303 lines of code (exceeds 250 allowed). Consider refactoring. Confirmed
'use strict';
/* SQL-92 standard data types and keywords
* http://www.frontbase.com/docs/5.3.html
*/
Avoid deeply nested control flow statements. Open
if (rule && rule.sequence)
output = output.replace('⥂_' + key + '⥄', rule.sequence + re + ANSIModes.reset);
else
output = output.replace('⥂_' + key + '⥄', re);
Avoid deeply nested control flow statements. Open
if (typeof rule.transform === 'string')
re = rule.transform;
else if (typeof rule.transform === 'function')
re = rule.transform(i);
Function union
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Confirmed
function union() {
let array = [];
for (let arg of arguments)
for (let item of arg)
if (!~array.indexOf(item))
- 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"