Showing 259 of 373 total issues
Function stretchSpansOverChange
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stretchSpansOverChange(e, t) {
if (t.full) return null
var r = isLine(e, t.from.line) && getLine(e, t.from.line).markedSpans,
n = isLine(e, t.to.line) && getLine(e, t.to.line).markedSpans
if (!r && !n) return null
Function Display
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
c = (this.display = new function Display(e, t, n) {
;(this.input = n),
(this.scrollbarFiller = elt(
"div",
null,
Consider simplifying this complex logical expression. Open
Open
if (((this.curOp.focus = activeElt()), !signalDOMEvent(this, e))) {
s && a < 11 && 27 == e.keyCode && (e.returnValue = !1)
var t = e.keyCode
this.display.shift = 16 == t || e.shiftKey
var r = handleKeyBinding(this, e)
Consider simplifying this complex logical expression. Open
Open
if (
(o.lastOp == n ||
(o.lastOrigin == t.origin &&
t.origin &&
(("+" == t.origin.charAt(0) &&
Function onContextMenu
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(_e.prototype.onContextMenu = function(e) {
var t = this,
r = t.cm,
n = r.display,
o = t.textarea,
Function token
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function token(r, i) {
return i.context.mode == n
? (function xmlToken(r, i, s) {
if (2 == s.depth)
return (
Function onDrop
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onDrop(e) {
var t = this
if (
(clearDragCursor(t),
!signalDOMEvent(t, e) && !eventInWidget(t.display, e))
Function wire
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(Shared.prototype.wire = function(e) {
var t = this
switch (e) {
case "onBlur":
this.editor.on("blur", function(e, r) {
Function buildToken
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildToken(e, t, r, n, o, i, l) {
if (t) {
var c,
u = e.splitSpaces
? (function splitSpaces(e, t) {
Function tokenBase
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenBase(e, t) {
var r = e.next()
if ('"' == r || "'" == r)
return (
(t.tokenize = (function tokenString(e) {
Function componentDidMount
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(Controlled.prototype.componentDidMount = function() {
var e = this
if (!s) {
if (
(this.props.defineMode &&
Function init
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
;(Ve.prototype.init = function(e) {
var t = this,
r = this,
n = r.cm,
o = (r.div = e.lineDiv)
Function updateLineGutter
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateLineGutter(e, t, r, n) {
if (
(t.gutter && (t.node.removeChild(t.gutter), (t.gutter = null)),
t.gutterBackground &&
(t.node.removeChild(t.gutterBackground),
Function moveVisually
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
? (function moveVisually(e, t, r, n) {
var o = getOrder(t, e.doc.direction)
if (!o) return moveLogically(t, r, n)
r.ch >= t.text.length
? ((r.ch = t.text.length), (r.sticky = "before"))
Function drawForLine
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawForLine(t, r, n) {
var i,
s,
u = getLine(o, t),
d = u.text.length
Function g
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
g = (function(e) {
!(function _inherits(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError(
"Super expression must either be null or a function, not " +
Consider simplifying this complex logical expression. Open
Open
if (g.top - f.top <= 3) {
var C = (c ? v : m) && b,
x = (c ? m : v) && y ? a : (h ? f : g).left,
w = C ? l : (h ? g : f).right
add(x, f.top, w - x, f.bottom)
Consider simplifying this complex logical expression. Open
Open
if (
(e.updatedDisplay && postUpdateDisplay(t, e.update),
null == r.wheelStartX ||
(null == e.scrollTop && null == e.scrollLeft && !e.scrollToPos) ||
(r.wheelStartX = r.wheelStartY = null),
Consider simplifying this complex logical expression. Open
Open
if (s)
for (var a = 0; a < s.length; a++) {
var l = s[a]
;(null != l.to && o == e.line && e.ch >= l.to) ||
(null == l.from && o != e.line) ||
Consider simplifying this complex logical expression. Open
Open
if (n.line >= e.display.viewFrom) {
var s = i.styles,
a =
i.text.length > e.options.maxHighlightLength
? copyState(t.mode, n.state)