Showing 218 of 289 total issues
Function objprop
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function objprop(e, t) {
if ("async" == e) return (m.marked = "property"), cont(objprop)
if ("variable" == e || "keyword" == m.style) {
if (((m.marked = "property"), "get" == t || "set" == t))
return cont(getterSetter)
Consider simplifying this complex logical expression. Open
Open
if (
!t.force &&
t.visible.from >= n.viewFrom &&
t.visible.to <= n.viewTo &&
(null == n.updateLineNumbers || n.updateLineNumbers >= n.viewTo) &&
Consider simplifying this complex logical expression. Open
Open
else if ("word" == r || "group" == r)
for (
var l = null,
c = "group" == r,
u = e.cm && e.cm.getHelper(t, "wordChars"),
Consider simplifying this complex logical expression. Open
Open
if (l)
for (var f = 0; f < l.length; ++f) {
var g = l[f]
null != g.to && (g.to += u),
null == g.from
Consider simplifying this complex logical expression. Open
Open
if (
(r &&
n < o.viewTo &&
(null == o.updateLineNumbers || o.updateLineNumbers > t) &&
(o.updateLineNumbers = t),
Consider simplifying this complex logical expression. Open
Open
if (3 == l.nodeType) {
for (var p = 0; p < 4; p++) {
for (; c && isExtendingChar(t.line.text.charAt(i.coverStart + c)); )
--c
for (
Consider simplifying this complex logical expression. Open
Open
if (t.somethingSelected()) {
this.prevInput = ""
var n = t.getSelection()
;(this.textarea.value = n),
t.state.focused && M(this.textarea),
Consider simplifying this complex logical expression. Open
Open
if (
r &&
!eventInWidget(t, n) &&
null != r.left &&
!r.moved &&
Consider simplifying this complex logical expression. Open
Open
if (null != a.wheelStartX) {
var e = s.scrollLeft - a.wheelStartX,
t = s.scrollTop - a.wheelStartY,
n =
(t && a.wheelDY && t / a.wheelDY) ||
Consider simplifying this complex logical expression. Open
Open
if (
(e.display.input.setUneditable(s),
a.insertBefore(s, t.text),
t.line.gutterClass && (s.className += " " + t.line.gutterClass),
!e.options.lineNumbers ||
Consider simplifying this complex logical expression. Open
Open
if (
((t = t ? copyObj(t) : {}),
(t.value = e.value),
!t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex),
!t.placeholder && e.placeholder && (t.placeholder = e.placeholder),
Function runMode
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function runMode(e, t, n, r, o, i, a) {
Function coordsBidiPart
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function coordsBidiPart(e, t, n, r, o, i, a) {
Function coordsBidiPartWrapped
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function coordsBidiPartWrapped(e, t, n, r, o, i, a) {
Function buildToken
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildToken(e, t, n, r, o, i, l) {
Function cursorCoords
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function cursorCoords(e, t, n, r, o, i) {
Function JSLexical
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function JSLexical(e, t, n, r, o, i) {
Avoid deeply nested control flow statements. Open
Open
if (
(buildCollapsedSpan(
t,
(null == p.to ? h + 1 : p.to) - f,
p.marker,
Avoid deeply nested control flow statements. Open
Open
if (l != a) throw new Error("Inconsistent bindings for " + s)
Avoid deeply nested control flow statements. Open
Open
if (/["'\/]/.test(s)) return