Showing 259 of 373 total issues
Function leftButtonStartDrag
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
? (function leftButtonStartDrag(e, t, r, n) {
var o = e.display,
i = !1,
c = operation(e, function(t) {
l && (o.scroller.draggable = !1),
Function fromTextArea
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(CodeMirror$1.fromTextArea = function fromTextArea(e, t) {
if (
(((t = t ? copyObj(t) : {}).value = e.value),
!t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex),
!t.placeholder && e.placeholder && (t.placeholder = e.placeholder),
Function bidiSimplify
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
;(S[a] = (function bidiSimplify(e, t) {
var r = t.anchor,
n = t.head,
o = getLine(e.doc, r.line)
if (
Function regChange
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function regChange(e, t, r, n) {
null == t && (t = e.doc.first),
null == r && (r = e.doc.first + e.doc.size),
n || (n = 0)
var o = e.display
Function addChangeToHistory
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addChangeToHistory(e, t, r, n) {
var o = e.history
o.undone.length = 0
var i,
s,
Function locateNodeInLineView
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function locateNodeInLineView(e, t, r) {
var n = e.text.firstChild,
o = !1
if (!t || !contains(n, t)) return badPos(Pos(lineNo(e.line), 0), !0)
if (t == n && ((o = !0), (t = n.childNodes[r]), (r = 0), !t)) {
Function indentLine
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function indentLine(e, t, r, n) {
var o,
i = e.doc
null == r && (r = "add"),
"smart" == r &&
Function domTextBetween
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function domTextBetween(e, t, r, n, o) {
var i = "",
s = !1,
a = e.doc.lineSeparator()
function close() {
Function scrollPosIntoView
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function scrollPosIntoView(e, t, r, n) {
null == n && (n = 0)
var o
e.options.lineWrapping ||
t != r ||
Consider simplifying this complex logical expression. Open
Open
if (o && !r && !d && null != ge)
return (
i && u && updateScrollTop(e, Math.max(0, a.scrollTop + i * ge)),
setScrollLeft(e, Math.max(0, a.scrollLeft + o * ge)),
(!i || (i && u)) && e_preventDefault(t),
Consider simplifying this complex logical expression. Open
Open
if (
((t.contextMenuPending = !1),
(t.wrapper.style.cssText = p),
(o.style.cssText = u),
s &&
Consider simplifying this complex logical expression. Open
Open
if (
!s ||
s.bad ||
!a ||
a.bad ||
Consider simplifying this complex logical expression. Open
Open
if (
((e.trailingSpace = 32 == u.charCodeAt(t.length - 1)),
r || n || o || p || l)
) {
var C = r || ""
Function getContextBefore
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getContextBefore(e, t, r) {
var n = e.doc,
o = e.display
if (!n.mode.startState) return new ee(n, !0, t)
var i = (function findStartLine(e, t, r) {
Function clear
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
;(Ce.prototype.clear = function() {
if (!this.explicitlyCleared) {
var e = this.doc.cm,
t = e && !e.curOp
if ((t && startOperation(e), hasHandler(this, "clear"))) {
Function addWidget
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addWidget: function(e, t, r, n, o) {
var i = this.display,
s = (e = cursorCoords(this, clipPos(this.doc, e))).bottom,
a = e.left
if (
Function addLegacyProps
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function addLegacyProps(e) {
;(e.off = off),
(e.on = j),
(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 r = t.viewport, n = !0;
((n &&
e.options.lineWrapping &&
Function skipAtomicInner
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function skipAtomicInner(e, t, r, n, o) {
var i = getLine(e, t.line)
if (i.markedSpans)
for (var s = 0; s < i.markedSpans.length; ++s) {
var a = i.markedSpans[s],
Function endOperation
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function endOperation(e) {
!(function finishOperation(e, t) {
var r = e.ownsGroup
if (r)
try {