In-browser code editor (version 5, legacy)
73 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/mode_test.js | 161 | function highlightOutputsDifferent(o1, o2) { |
| LOW | mode/clojure/test.js | 363 | function testFormsThatHaveBodyParameter(forms) { |
| LOW | mode/dart/dart.js | 135 | function tokenInterpolationIdentifier(stream, state) { |
| LOW | mode/markdown/test.js | 47 | function FormatTokenTypeOverrideTest(name) { test.mode(name, modeFormattingOverride, Array.prototype.slice.call(argume |
| LOW | mode/powershell/powershell.js | 284 | function tokenHereStringInterpolation(stream, state) { |
| LOW | mode/slim/slim.js | 265 | function startAttributeWrapperMode(state, endQuote, tokenize) { |
| LOW | mode/sass/sass.js | 108 | function buildInterpolationTokenizer(currentTokenizer) { |
| LOW | mode/sql/sql.js | 226 | function hookIdentifierDoublequote(stream) { |
| LOW | addon/merge/merge.js | 789 | function collapseIdenticalStretches(mv, margin) { |
| LOW | addon/comment/continuecomment.js | 93 | function continueLineCommentEnabled(cm) { |
| LOW | addon/search/searchcursor.js | 45 | function searchRegexpForwardMultiline(doc, regexp, start) { |
| LOW | addon/search/searchcursor.js | 102 | function searchRegexpBackwardMultiline(doc, regexp, start) { |
| LOW | addon/search/search.js | 220 | function getReplacementQueryDialog(cm) { |
| LOW | addon/edit/continuelist.js | 67 | function incrementRemainingMarkdownListNumbers(cm, pos) { |
| LOW | src/measurement/position_measurement.js | 76 | function updateExternalMeasurement(cm, line) { |
| LOW | src/measurement/position_measurement.js | 252 | function maybeUpdateRectForZooming(measure, rect) { |
| LOW | src/measurement/position_measurement.js | 262 | export function clearLineMeasurementCacheFor(lineView) { |
| LOW | src/measurement/position_measurement.js | 271 | export function clearLineMeasurementCache(cm) { |
| LOW | src/line/spans.js | 242 | export function conflictingCollapsedRange(doc, lineNo, from, to, marker) { |
| LOW | src/line/line_data.js | 121 | export function defaultSpecialCharPlaceholder(ch) { |
| LOW | src/model/changes.js | 212 | function makeChangeSingleDocInEditor(cm, change, spans) { |
| LOW | src/model/line_widget.js | 54 | function adjustScrollWhenAboveVisible(cm, line, diff) { |
| LOW | src/model/history.js | 105 | function selectionEventCanBeMerged(doc, origin, prev, sel) { |
| LOW | src/model/selection_updates.js | 85 | export function setSelectionReplaceHistory(doc, sel, options) { |
| LOW | src/display/line_numbers.js | 32 | export function maybeUpdateLineNumberWidth(cm) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | mode/coffeescript/index.html | 54 | # -------------- |
| MEDIUM | mode/coffeescript/index.html | 123 | # -------------------- |
| MEDIUM | mode/coffeescript/index.html | 296 | # --------------- |
| MEDIUM | mode/coffeescript/index.html | 405 | # ------------------ |
| MEDIUM | mode/coffeescript/index.html | 464 | # ---------------- |
| MEDIUM | mode/coffeescript/index.html | 597 | # ----------------- |
| MEDIUM | mode/coffeescript/index.html | 681 | # --------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | mode/coffeescript/index.html | 106 | # Create a safe reference to the Underscore object for use below. |
| MEDIUM | mode/coffeescript/index.html | 407 | # Create a function bound to a given object (assigning `this`, and arguments, |
| MEDIUM | mode/puppet/index.html | 55 | # Create a subdirectory in /etc for config files |
| MEDIUM | mode/puppet/index.html | 63 | # Create an example backup file, useful for reference |
| MEDIUM | mode/puppet/index.html | 91 | # Create the base backup directory |
| MEDIUM | mode/ruby/index.html | 97 | # Create a string of the polynomial in sort-of-readable form. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/matchhighlighter.html | 43 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra |
| LOW | demo/matchhighlighter.html | 43 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra |
| LOW | demo/matchhighlighter.html | 49 | sagittis felis a, pellentesque mauris. Lorem ipsum dolor sit amet, |
| LOW | demo/matchhighlighter.html | 49 | sagittis felis a, pellentesque mauris. Lorem ipsum dolor sit amet, |
| LOW | demo/matchhighlighter.html | 75 | Nam rhoncus, est blandit auctor auctor, lorem ipsum laoreet ipsum, |
| LOW | demo/hardwrap.html | 29 | <form><textarea id="code" name="code">Lorem ipsum dolor sit amet, vim augue dictas constituto ex, |
| LOW | demo/hardwrap.html | 29 | <form><textarea id="code" name="code">Lorem ipsum dolor sit amet, vim augue dictas constituto ex, |
| LOW | demo/simplescrollbars.html | 33 | Lorem ipsum dolor sit amet, turpis nec facilisis neque vestibulum adipiscing, magna nunc est luctus orci a, |
| LOW | demo/simplescrollbars.html | 33 | Lorem ipsum dolor sit amet, turpis nec facilisis neque vestibulum adipiscing, magna nunc est luctus orci a, |
| LOW | mode/textile/test.js | 80 | 'user@example.com'); |
| LOW | mode/rst/index.html | 419 | Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_ |
| LOW | mode/rst/index.html | 419 | Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_ |
| LOW | mode/rst/index.html | 437 | Lorem ipsum [Ref]_ dolor sit amet. |
| LOW | mode/rst/index.html | 437 | Lorem ipsum [Ref]_ dolor sit amet. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/test.js | 1621 | // Good: |
| LOW | mode/markdown/test.js | 181 | // Unclosed backticks |
| LOW | mode/erlang/erlang.js | 461 | } |
| LOW | mode/tcl/index.html | 21 | <li><a href="../index.html">Language modes</a> |
| LOW | mode/tcl/index.html | 41 | ## ## Start Setup. ## ## |
| LOW | mode/sas/sas.js | 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others |
| LOW | mode/coffeescript/index.html | 21 | <li><a class=active href="#">CoffeeScript</a> |
| LOW | mode/coffeescript/index.html | 41 | # **Underscore.coffee |
| LOW | mode/rpm/index.html | 61 | indentUnit: 4 |
| LOW | addon/search/match-highlighter.js | 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others |
| LOW | addon/tern/tern.js | 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others |
| LOW | addon/tern/tern.js | 21 | // multi-file view, switch the view or focus to the named file. |
| LOW | src/util/bidi.js | 41 | // One-char codes used for character types: |
| LOW | src/model/chunk.js | 1 | import { cleanUpLine } from "../line/line_data.js" |
| LOW | src/model/mark_text.js | 21 | // handle that can be used to clear or find a marked position in the |
| LOW | src/display/scroll_events.js | 1 | import { chrome, chrome_version, gecko, ie, mac, presto, safari, webkit } from "../util/browser.js" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | src/input/ContentEditableInput.js | 134 | return this.cm.display.wrapper.ownerDocument.getSelection() |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | doc/releases.html | 871 | <li><a href="https://codemirror.net/5/doc/manual.html#addon_merge">merge addon</a>: Make aligning of unchanged chunk |
| MEDIUM | doc/releases.html | 871 | <li><a href="https://codemirror.net/5/doc/manual.html#addon_merge">merge addon</a>: Make aligning of unchanged chunk |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | doc/manual.html | 172 | <p>Here's a simple example of using RequireJS to load CodeMirror:</p> |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | mode/ruby/index.html | 102 | # Assign exponents to each term, making pairs of coeff and exponent, |