Showing 218 of 289 total issues
Function calculateScrollPos
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function calculateScrollPos(e, t) {
var n = e.display,
r = textHeight(e.display)
t.top < 0 && (t.top = 0)
var o =
Function domTextBetween
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function domTextBetween(e, t, n, r, o) {
function recognizeMarker(e) {
return function(t) {
return t.id == e
}
Function onCopyCut
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onCopyCut(e) {
if (!signalDOMEvent(r, e)) {
if (r.somethingSelected())
setLastCopied({ lineWise: !1, text: r.getSelections() }),
"cut" == e.type && r.replaceSelection("", null, "cut")
Function transposeChars
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
transposeChars: function(e) {
return runInOp(e, function() {
for (var t = e.listSelections(), n = [], r = 0; r < t.length; r++)
if (t[r].empty()) {
var o = t[r].head,
Function pollSelection
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(_e.prototype.pollSelection = function() {
if (
null == this.readDOMTimeout &&
!this.gracePeriod &&
this.selectionChanged()
Consider simplifying this complex logical expression. Open
Open
if (c && u) {
var h,
f = e.rangeCount && e.getRangeAt(0)
try {
h = w(c.node, c.offset, u.offset, u.node)
Consider simplifying this complex logical expression. Open
Open
if (l != a.length) {
for (
o.lastOrigin = o.lastSelOrigin = null;
(r = a.pop()).ranges;
Consider simplifying this complex logical expression. Open
Open
if (!(cmp(c.to, s.from) < 0 || cmp(c.from, s.to) > 0)) {
var u = [l, 1],
d = cmp(c.from, s.from),
p = cmp(c.to, s.to)
;(d < 0 || (!a.inclusiveLeft && !d)) &&
Consider simplifying this complex logical expression. Open
Open
else if (!clickInGutter(t, e)) {
var r = posFromMouse(t, e),
o = e_button(e),
i = r ? clickRepeat(r, o) : "single"
window.focus(),
Consider simplifying this complex logical expression. Open
Open
if (
(o = t.markedSpans[i]).marker.collapsed &&
!o.marker.widgetNode &&
o.from == n.to &&
(null == o.to || o.to != n.from) &&
Consider simplifying this complex logical expression. Open
Open
else if (d.node && d.node.parentNode == i) {
for (; a != d.node; ) a = rm(a)
var p = o && null != t && t <= c && d.lineNumber
d.changes &&
(indexOf(d.changes, "gutter") > -1 && (p = !1),
Consider simplifying this complex logical expression. Open
Open
if (p.test(n))
return (
(">" == n && t.lexical && ">" == t.lexical.type) ||
(e.eat("=")
? ("!" != n && "=" != n) || e.eat("=")
Consider simplifying this complex logical expression. Open
Open
if (
null == i.to ||
(a.inclusiveRight ? i.to >= t : i.to > t) ||
(i.from == t &&
"bookmark" == a.type &&
Consider simplifying this complex logical expression. Open
Open
if (
this.contextMenuPending ||
!t.state.focused ||
(K(n) && !r && !this.composing) ||
t.isReadOnly() ||
Consider simplifying this complex logical expression. Open
Open
if (
null == i.from ||
(a.inclusiveLeft ? i.from <= t : i.from < t) ||
(i.from == t &&
"bookmark" == a.type &&
Consider simplifying this complex logical expression. Open
Open
if (
(Object.keys(e.options || {}).forEach(function(n) {
return t.editor.setOption(n, e.options[n])
}),
this.props.editorDidConfigure &&
Function runMode
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runMode(e, t, n, r, o, i, a) {
var s = n.flattenSpans
null == s && (s = e.options.flattenSpans)
var l,
c = 0,
Function onMouseDown
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onMouseDown(e) {
var t = this,
n = t.display
if (
!(signalDOMEvent(t, e) || (n.activeTouch && n.input.supportsTouch()))
Function coordsBidiPart
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function coordsBidiPart(e, t, n, r, o, i, a) {
var s = findFirst(
function(s) {
var l = o[s],
c = 1 != l.level
Function addLineWidget
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addLineWidget(e, t, n, r) {
var o = new ye(e, n, r),
i = e.cm
return (
i && o.noHScroll && (i.display.alignWidgets = !0),