Repository Analysis

codemirror/codemirror5

In-browser code editor (version 5, legacy)

1.2 Likely human-written View on GitHub
1.2
Adjusted Score
1.2
Raw Score
100%
Time Factor
2026-04-16
Last Push
27,245
Stars
JavaScript
Language
98,820
Lines of Code
567
Files
73
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 0MEDIUM 16LOW 56

Pattern Findings

73 matches across 9 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers25 hits · 26 pts
SeverityFileLineSnippet
LOWtest/mode_test.js161 function highlightOutputsDifferent(o1, o2) {
LOWmode/clojure/test.js363 function testFormsThatHaveBodyParameter(forms) {
LOWmode/dart/dart.js135 function tokenInterpolationIdentifier(stream, state) {
LOWmode/markdown/test.js47 function FormatTokenTypeOverrideTest(name) { test.mode(name, modeFormattingOverride, Array.prototype.slice.call(argume
LOWmode/powershell/powershell.js284 function tokenHereStringInterpolation(stream, state) {
LOWmode/slim/slim.js265 function startAttributeWrapperMode(state, endQuote, tokenize) {
LOWmode/sass/sass.js108 function buildInterpolationTokenizer(currentTokenizer) {
LOWmode/sql/sql.js226 function hookIdentifierDoublequote(stream) {
LOWaddon/merge/merge.js789 function collapseIdenticalStretches(mv, margin) {
LOWaddon/comment/continuecomment.js93 function continueLineCommentEnabled(cm) {
LOWaddon/search/searchcursor.js45 function searchRegexpForwardMultiline(doc, regexp, start) {
LOWaddon/search/searchcursor.js102 function searchRegexpBackwardMultiline(doc, regexp, start) {
LOWaddon/search/search.js220 function getReplacementQueryDialog(cm) {
LOWaddon/edit/continuelist.js67 function incrementRemainingMarkdownListNumbers(cm, pos) {
LOWsrc/measurement/position_measurement.js76function updateExternalMeasurement(cm, line) {
LOWsrc/measurement/position_measurement.js252function maybeUpdateRectForZooming(measure, rect) {
LOWsrc/measurement/position_measurement.js262export function clearLineMeasurementCacheFor(lineView) {
LOWsrc/measurement/position_measurement.js271export function clearLineMeasurementCache(cm) {
LOWsrc/line/spans.js242export function conflictingCollapsedRange(doc, lineNo, from, to, marker) {
LOWsrc/line/line_data.js121export function defaultSpecialCharPlaceholder(ch) {
LOWsrc/model/changes.js212function makeChangeSingleDocInEditor(cm, change, spans) {
LOWsrc/model/line_widget.js54function adjustScrollWhenAboveVisible(cm, line, diff) {
LOWsrc/model/history.js105function selectionEventCanBeMerged(doc, origin, prev, sel) {
LOWsrc/model/selection_updates.js85export function setSelectionReplaceHistory(doc, sel, options) {
LOWsrc/display/line_numbers.js32export function maybeUpdateLineNumberWidth(cm) {
Decorative Section Separators7 hits · 21 pts
SeverityFileLineSnippet
MEDIUMmode/coffeescript/index.html54# --------------
MEDIUMmode/coffeescript/index.html123# --------------------
MEDIUMmode/coffeescript/index.html296# ---------------
MEDIUMmode/coffeescript/index.html405# ------------------
MEDIUMmode/coffeescript/index.html464# ----------------
MEDIUMmode/coffeescript/index.html597# -----------------
MEDIUMmode/coffeescript/index.html681# ---------------------
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippet
MEDIUMmode/coffeescript/index.html106# Create a safe reference to the Underscore object for use below.
MEDIUMmode/coffeescript/index.html407# Create a function bound to a given object (assigning `this`, and arguments,
MEDIUMmode/puppet/index.html55# Create a subdirectory in /etc for config files
MEDIUMmode/puppet/index.html63# Create an example backup file, useful for reference
MEDIUMmode/puppet/index.html91# Create the base backup directory
MEDIUMmode/ruby/index.html97# Create a string of the polynomial in sort-of-readable form.
Fake / Example Data14 hits · 16 pts
SeverityFileLineSnippet
LOWdemo/matchhighlighter.html43Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra
LOWdemo/matchhighlighter.html43Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra
LOWdemo/matchhighlighter.html49sagittis felis a, pellentesque mauris. Lorem ipsum dolor sit amet,
LOWdemo/matchhighlighter.html49sagittis felis a, pellentesque mauris. Lorem ipsum dolor sit amet,
LOWdemo/matchhighlighter.html75Nam rhoncus, est blandit auctor auctor, lorem ipsum laoreet ipsum,
LOWdemo/hardwrap.html29<form><textarea id="code" name="code">Lorem ipsum dolor sit amet, vim augue dictas constituto ex,
LOWdemo/hardwrap.html29<form><textarea id="code" name="code">Lorem ipsum dolor sit amet, vim augue dictas constituto ex,
LOWdemo/simplescrollbars.html33Lorem ipsum dolor sit amet, turpis nec facilisis neque vestibulum adipiscing, magna nunc est luctus orci a,
LOWdemo/simplescrollbars.html33Lorem ipsum dolor sit amet, turpis nec facilisis neque vestibulum adipiscing, magna nunc est luctus orci a,
LOWmode/textile/test.js80 'user@example.com');
LOWmode/rst/index.html419 Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_
LOWmode/rst/index.html419 Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_
LOWmode/rst/index.html437 Lorem ipsum [Ref]_ dolor sit amet.
LOWmode/rst/index.html437 Lorem ipsum [Ref]_ dolor sit amet.
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippet
LOWtest/test.js1621 // Good:
LOWmode/markdown/test.js181 // Unclosed backticks
LOWmode/erlang/erlang.js461 }
LOWmode/tcl/index.html21 <li><a href="../index.html">Language modes</a>
LOWmode/tcl/index.html41## ## Start Setup. ## ##
LOWmode/sas/sas.js1// CodeMirror, copyright (c) by Marijn Haverbeke and others
LOWmode/coffeescript/index.html21 <li><a class=active href="#">CoffeeScript</a>
LOWmode/coffeescript/index.html41# **Underscore.coffee
LOWmode/rpm/index.html61 indentUnit: 4
LOWaddon/search/match-highlighter.js1// CodeMirror, copyright (c) by Marijn Haverbeke and others
LOWaddon/tern/tern.js1// CodeMirror, copyright (c) by Marijn Haverbeke and others
LOWaddon/tern/tern.js21// multi-file view, switch the view or focus to the named file.
LOWsrc/util/bidi.js41// One-char codes used for character types:
LOWsrc/model/chunk.js1import { cleanUpLine } from "../line/line_data.js"
LOWsrc/model/mark_text.js21// handle that can be used to clear or find a marked position in the
LOWsrc/display/scroll_events.js1import { chrome, chrome_version, gecko, ie, mac, presto, safari, webkit } from "../util/browser.js"
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALsrc/input/ContentEditableInput.js134 return this.cm.display.wrapper.ownerDocument.getSelection()
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMdoc/releases.html871 <li><a href="https://codemirror.net/5/doc/manual.html#addon_merge">merge addon</a>: Make aligning of unchanged chunk
MEDIUMdoc/releases.html871 <li><a href="https://codemirror.net/5/doc/manual.html#addon_merge">merge addon</a>: Make aligning of unchanged chunk
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMdoc/manual.html172 <p>Here's a simple example of using RequireJS to load CodeMirror:</p>
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWmode/ruby/index.html102 # Assign exponents to each term, making pairs of coeff and exponent,