Showing 259 of 373 total issues
Function ./node_modules/codemirror/lib/codemirror.js
has 9515 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"./node_modules/codemirror/lib/codemirror.js": function(e, t, r) {
;(n = function() {
"use strict"
var e = navigator.userAgent,
t = navigator.platform,
Function ./node_modules/codemirror/mode/javascript/javascript.js
has a Cognitive Complexity of 1776 (exceeds 5 allowed). Consider refactoring. Open
Open
"./node_modules/codemirror/mode/javascript/javascript.js": function(e, t, r) {
;(function(e) {
"use strict"
e.defineMode("javascript", function(t, r) {
var n = t.indentUnit,
- 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 0.355cdadd.js
has 11763 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
webpackJsonp([0], {
"./node_modules/codemirror/lib/codemirror.js": function(e, t, r) {
;(n = function() {
"use strict"
var e = navigator.userAgent,
Function ./node_modules/codemirror/mode/javascript/javascript.js
has 1062 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"./node_modules/codemirror/mode/javascript/javascript.js": function(e, t, r) {
;(function(e) {
"use strict"
e.defineMode("javascript", function(t, r) {
var n = t.indentUnit,
Function ./node_modules/react-codemirror2/index.js
has 475 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"./node_modules/react-codemirror2/index.js": function(e, t, r) {
"use strict"
var n =
(this && this.__extends) ||
(function() {
Function ./node_modules/react-codemirror2/index.js
has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring. Open
Open
"./node_modules/react-codemirror2/index.js": function(e, t, r) {
"use strict"
var n =
(this && this.__extends) ||
(function() {
- 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 onMouseDown
has 372 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onMouseDown(e) {
var t = this.display
if (
!(
signalDOMEvent(this, e) ||
Function ./node_modules/codemirror/mode/xml/xml.js
has 372 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"./node_modules/codemirror/mode/xml/xml.js": function(e, t, r) {
;(function(e) {
"use strict"
var t = {
autoSelfClosers: {
Function CodeMirror$1
has 324 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CodeMirror$1(e, t) {
var n = this
if (!(this instanceof CodeMirror$1)) return new CodeMirror$1(e, t)
;(this.options = t = t ? copyObj(t) : {}),
copyObj(Be, t, !1),
Function leftButtonDown
has 301 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
? (function leftButtonDown(e, t, r, n) {
s
? setTimeout(bind(ensureFocus, e), 0)
: (e.curOp.focus = activeElt())
var o,
Consider simplifying this complex logical expression. Open
Open
else if (!clickInGutter(this, e)) {
var r = posFromMouse(this, e),
n = e_button(e),
o = r
? (function clickRepeat(e, t) {
Function defineOptions
has 221 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
!(function defineOptions(e) {
var t = e.optionHandlers
function option(r, n, o, i) {
;(e.defaults[r] = n),
o &&
Function leftButtonSelect
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
: (function leftButtonSelect(e, t, r, n) {
var o = e.display,
i = e.doc
e_preventDefault(t)
var s,
Function l
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
l = (function(e) {
n(Controlled, e)
function Controlled(t) {
var r = e.call(this, t) || this
return s
Function registerEventHandlers
has 181 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function registerEventHandlers(e) {
var t = e.display
j(t.scroller, "mousedown", operation(e, onMouseDown)),
j(
t.scroller,
Consider simplifying this complex logical expression. Open
Open
if (v == f) {
;(l = c = u = d = a = ""), (p = null), (v = 1 / 0)
for (var y = [], b = void 0, C = 0; C < n.length; ++C) {
var x = n[C],
w = x.marker
Function c
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var c = (function(e) {
n(UnControlled, e)
function UnControlled(t) {
var r = e.call(this, t) || this
return s
Consider simplifying this complex logical expression. Open
Open
if (
(this.props.defineMode &&
this.props.defineMode.name &&
this.props.defineMode.fn &&
o.defineMode(
Function updateDisplayIfNeeded
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateDisplayIfNeeded(e, t) {
var r = e.display,
n = e.doc
if (t.editorIsHidden) return resetView(e), !1
if (
Function ./node_modules/codemirror/mode/jsx/jsx.js
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"./node_modules/codemirror/mode/jsx/jsx.js": function(e, t, r) {
;(function(e) {
"use strict"
function Context(e, t, r, n) {
;(this.state = e), (this.mode = t), (this.depth = r), (this.prev = n)