Showing 218 of 289 total issues
Function findFatArrow
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findFatArrow(e, t) {
t.fatArrowAt && (t.fatArrowAt = null)
var n = e.string.indexOf("=>", e.start)
if (!(n < 0)) {
if (c) {
Function maybeoperatorNoComma
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function maybeoperatorNoComma(e, t, n) {
var r = 0 == n ? maybeoperatorComma : maybeoperatorNoComma,
o = 0 == n ? expression : expressionNoComma
return "=>" == e
? cont(pushcontext, n ? arrowBodyNoComma : arrowBody, popcontext)
Function maybeScrollWindow
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function maybeScrollWindow(e, t) {
if (!signalDOMEvent(e, "scrollCursorIntoView")) {
var n = e.display,
r = n.sizer.getBoundingClientRect(),
o = null
Function indent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
indent: function(t, n, r) {
var o = t.context
if (t.tokenize.isInAttribute)
return t.tagStart == t.indented
? t.stringStartCol + 1
Function removeReadOnlyRanges
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function removeReadOnlyRanges(e, t, n) {
var r = null
if (
(e.iter(t.line, n.line + 1, function(e) {
if (e.markedSpans)
Function posFromMouse
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function posFromMouse(e, t, n, r) {
var o = e.display
if (!n && "true" == e_target(t).getAttribute("cm-not-content"))
return null
var i,
Function endOperation_finish
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function endOperation_finish(e) {
var t = e.cm,
n = t.display,
r = t.doc
e.updatedDisplay && postUpdateDisplay(t, e.update),
Function inText
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function inText(e, t) {
function chain(n) {
return (t.tokenize = n), n(e, t)
}
var n = e.next()
Function l
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
l = function(e, r) {
if (
!t.options.allowDropFileTypes ||
-1 != indexOf(t.options.allowDropFileTypes, e.type)
) {
Function handleNotify
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleNotify(type, message, title, optionsOverride = {}) {
if (
this.props.preventDuplicates &&
_.includes(this.state.toastList, { message })
) {
Function update
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
;(ce.prototype.update = function(e) {
var t = e.scrollWidth > e.clientWidth + 1,
n = e.scrollHeight > e.clientHeight + 1,
r = e.nativeBarWidth
if (n) {
Function removeInner
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeInner: function removeInner(e, t) {
var n = this
this.size -= t
for (var r = 0; r < this.children.length; ++r) {
var o = n.children[r],
Function makeChangeSingleDoc
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeChangeSingleDoc(e, t, n, r) {
if (e.cm && !e.cm.curOp)
return operation(e.cm, makeChangeSingleDoc)(e, t, n, r)
if (t.to.line < e.first)
shiftDoc(e, t.text.length - 1 - (t.to.line - t.from.line))
Function normalizeKeyMap
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function normalizeKeyMap(e) {
var t = {}
for (var n in e)
if (e.hasOwnProperty(n)) {
var r = e[n]
Function cursorCoords
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cursorCoords(e, t, n, r, o, i) {
function get(t, a) {
var s = measureCharPrepared(e, o, t, a ? "right" : "left", i)
return (
a ? (s.left = s.right) : (s.right = s.left),
Function updateHeightsInViewport
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateHeightsInViewport(e) {
for (
var t = e.display, n = t.lineDiv.offsetTop, r = 0;
r < t.view.length;
r++
Function maybeUpdateLineNumberWidth
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function maybeUpdateLineNumberWidth(e) {
if (!e.options.lineNumbers) return !1
var t = e.doc,
n = lineNumberFor(e.options, t.first + t.size - 1),
r = e.display
Function removeLineClass
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeLineClass: docMethodOp(function(e, t, n) {
return changeLine(
this,
e,
"gutter" == t ? "gutter" : "class",
Function triggerElectric
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function triggerElectric(e, t) {
if (e.options.electricChars && e.options.smartIndent)
for (var n = e.doc.sel, r = n.ranges.length - 1; r >= 0; r--) {
var o = n.ranges[r]
if (
Function hydrate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function hydrate(e) {
var t = this
if (
(Object.keys(e.options || {}).forEach(function(n) {
return t.editor.setOption(n, e.options[n])