Showing 218 of 289 total issues
Function coordsCharInner
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function coordsCharInner(e, t, n, r, o) {
o -= heightAtLine(t)
var i = prepareMeasureForLine(e, t),
a = widgetTopHeight(t),
s = 0,
Function updateDisplayIfNeeded
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateDisplayIfNeeded(e, t) {
var n = e.display,
r = e.doc
if (t.editorIsHidden) return resetView(e), !1
if (
Function makeChangeFromHistory
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeChangeFromHistory(e, t, n) {
if (!e.cm || !e.cm.state.suppressEdits || n) {
for (
var r,
o = e.history,
Function CodeMirror$1
has 55 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 showPrimarySelection
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(_e.prototype.showPrimarySelection = function() {
var e = window.getSelection(),
t = this.cm,
r = t.doc.sel.primary(),
o = r.from(),
Function init
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
;(Ve.prototype.init = function(e) {
function prepareCopyCut(e) {
if (!signalDOMEvent(r, e)) {
if (r.somethingSelected())
setLastCopied({ lineWise: !1, text: r.getSelections() })
Function highlightWorker
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function highlightWorker(e) {
var t = e.doc
if (!(t.highlightFrontier >= e.display.viewTo)) {
var n = +new Date() + e.options.workTime,
r = getContextBefore(e, t.highlightFrontier),
Function poll
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(Ve.prototype.poll = function() {
var e = this,
t = this.cm,
n = this.textarea,
r = this.prevInput
Function tokenBase
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenBase(e, t) {
var n = e.next()
if ('"' == n || "'" == n)
return (t.tokenize = tokenString(n)), t.tokenize(e, t)
if ("." == n && e.match(/^\d+(?:[eE][+\-]?\d+)?/))
Function applyTextInput
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function applyTextInput(e, t, n, r, o) {
var i = e.doc
;(e.display.shift = !1), r || (r = i.sel)
var a = e.state.pasteIncoming || "paste" == o,
s = U(t),
Function updateDoc
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateDoc(e, t, n, r) {
function spansFor(e) {
return n ? n[e] : null
}
function update(e, n, o) {
Consider simplifying this complex logical expression. Open
Open
if (
!((u >= 0 && d <= 0) || (u <= 0 && d >= 0)) &&
((u <= 0 &&
(l.marker.inclusiveRight && o.inclusiveLeft
? cmp(c.to, n) >= 0
Function onScrollWheel
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onScrollWheel(e, t) {
var r = wheelEventDelta(t),
o = r.x,
i = r.y,
a = e.display,
Function highlightLine
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function highlightLine(e, t, n, r) {
var o = [e.state.modeGen],
i = {}
runMode(
e,
Function fromTextArea
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(CodeMirror$1.fromTextArea = function fromTextArea(e, t) {
function save() {
e.value = a.getValue()
}
if (
Function makeChangeSingleDocInEditor
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeChangeSingleDocInEditor(e, t, n) {
var r = e.doc,
o = e.display,
i = t.from,
a = t.to,
Function xmlToken
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function xmlToken(n, i, a) {
if (2 == a.depth)
return (
n.match(/^.*?\*\//) ? (a.depth = 1) : n.skipToEnd(), "comment"
)
Function indentLine
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function indentLine(e, t, n, r) {
var o,
i = e.doc
null == n && (n = "add"),
"smart" == n &&
Function regChange
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function regChange(e, t, n, r) {
null == t && (t = e.doc.first),
null == n && (n = e.doc.first + e.doc.size),
r || (r = 0)
var o = e.display
Function locateNodeInLineView
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function locateNodeInLineView(e, t, n) {
function find(t, n, r) {
for (var o = -1; o < (c ? c.length : 0); o++)
for (var i = o < 0 ? l.map : c[o], a = 0; a < i.length; a += 3) {
var s = i[a + 2]