Showing 278 of 361 total issues
Function easeInOutCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInOutCirc: function (x, t, b, c, d) {
Function easeOutBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeOutBounce: function (x, t, b, c, d) {
Function easeInOutSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInOutSine: function (x, t, b, c, d) {
Function easeInQuart
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInQuart: function (x, t, b, c, d) {
Function easeInCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInCirc: function (x, t, b, c, d) {
Function easeOutCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeOutCirc: function (x, t, b, c, d) {
Function easeInOutElastic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInOutElastic: function (x, t, b, c, d) {
Function easeInBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
easeInBounce: function (x, t, b, c, d) {
Function colorize
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
CodeMirror.colorize = (function() {
var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/;
function textContent(node, out) {
- 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
Open
return false;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
if (done) return done;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
else return "L";
Avoid too many return
statements within this function. Open
Open
if (!start) {if (e_target(e) == display.scroller) e_preventDefault(e); return;}
Avoid too many return
statements within this function. Open
Open
return {anchor: adjustPos(doc.sel.anchor), head: adjustPos(doc.sel.head)};
Avoid too many return
statements within this function. Open
Open
return clipToLen(pos, change.text[inside].length + (inside ? 0 : change.from.ch));
Avoid too many return
statements within this function. Open
Open
if (!part) return null;
Avoid too many return
statements within this function. Open
Open
return lookup(fallthrough);