Showing 218 of 289 total issues
Function findPosH
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findPosH(e, t, n, r, o) {
function findNextLine() {
var r = t.line + n
return (
!(r < e.first || r >= e.first + e.size) &&
Function clear
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
;(xe.prototype.clear = function() {
var e = this
if (!this.explicitlyCleared) {
var t = this.doc.cm,
n = t && !t.curOp
Consider simplifying this complex logical expression. Open
Open
if (
!a ||
a.bad ||
!s ||
s.bad ||
Consider simplifying this complex logical expression. Open
Open
if (o && !n && !d && null != ge)
return (
i && u && updateScrollTop(e, Math.max(0, s.scrollTop + i * ge)),
setScrollLeft(e, Math.max(0, s.scrollLeft + o * ge)),
(!i || (i && u)) && e_preventDefault(t),
Consider simplifying this complex logical expression. Open
Open
if (
((e.trailingSpace = 32 == u.charCodeAt(t.length - 1)),
n || r || o || p || l)
) {
var x = n || ""
Consider simplifying this complex logical expression. Open
Open
if (
((t.contextMenuPending = !1),
(t.wrapper.style.cssText = p),
(o.style.cssText = u),
a &&
Function patchDisplay
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function patchDisplay(e, t, n) {
function rm(t) {
var n = t.nextSibling
return (
l && y && e.display.currentWheelTarget == t
Function stretchSpansOverChange
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stretchSpansOverChange(e, t) {
if (t.full) return null
var n = isLine(e, t.from.line) && getLine(e, t.from.line).markedSpans,
r = isLine(e, t.to.line) && getLine(e, t.to.line).markedSpans
if (!n && !r) return null
Function expressionInner
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function expressionInner(e, t) {
if (m.state.fatArrowAt == m.stream.start) {
var n = t ? arrowBodyNoComma : arrowBody
if ("(" == e)
return cont(
Function addLegacyProps
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function addLegacyProps(e) {
;(e.off = off),
(e.on = V),
(e.wheelEventPixels = wheelEventPixels),
(e.Doc = Se),
Function postUpdateDisplay
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function postUpdateDisplay(e, t) {
for (
var n = t.viewport, r = !0;
((r &&
e.options.lineWrapping &&
Function leftButtonStartDrag
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function leftButtonStartDrag(e, t, n, r) {
var o = e.display,
i = !1,
c = operation(e, function(t) {
l && (o.scroller.draggable = !1),
Function skipAtomicInner
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function skipAtomicInner(e, t, n, r, o) {
var i = getLine(e, t.line)
if (i.markedSpans)
for (var a = 0; a < i.markedSpans.length; ++a) {
var s = i.markedSpans[a],
Function extendTo
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extendTo(t) {
if (0 != cmp(d, t))
if (((d = t), "rectangle" == r.unit)) {
for (
var o = [],
Function indent
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
indent: function(t, r) {
if (t.tokenize == tokenComment) return e.Pass
if (t.tokenize != tokenBase) return 0
var o,
s = r && r.charAt(0),
Function m
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
m = (function(e) {
function Editor() {
_classCallCheck(this, Editor)
var e = _possibleConstructorReturn(
this,
Function scrollPosIntoView
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scrollPosIntoView(e, t, n, r) {
null == r && (r = 0)
var o
e.options.lineWrapping ||
t != n ||
Function addChangeToHistory
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addChangeToHistory(e, t, n, r) {
var o = e.history
o.undone.length = 0
var i,
a,
Function nodeAndOffsetInLineMap
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function nodeAndOffsetInLineMap(e, t, n) {
for (var r, o, i, a, s, l, c = 0; c < e.length; c += 3)
if (
((s = e[c]),
(l = e[c + 1]),
Function addWidget
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addWidget: function(e, t, n, r, o) {
var i = this.display,
a = (e = cursorCoords(this, clipPos(this.doc, e))).bottom,
s = e.left
if (