AI Slop Code Risk Monitor

highlightjs/highlight.js

SlopCodeMonitor badge for highlightjs/highlight.js Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

JavaScript syntax highlighter with language auto-detection and zero dependencies.

0.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for highlightjs/highlight.js, a JavaScript project with 25,010 GitHub stars. SynthScan examined 157,822 lines of code across 1989 source files, recording 79 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.6 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

0.6
Adjusted Signal
0.6
Raw Pattern Score
100%
Time Factor
2026-09-06
Last Push
25.0K
Stars
JavaScript
Language
157.8K
Lines of Code
2.0K
Files
79
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 1.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 59 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.3/100 · LOW

Are imports declared and package/API names verified? 20 finding(s).

Agent Over-Engineering Ratio 0.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 5 finding(s).

PR Review Velocity Impact 3.1/100 · LOW

Which changes need focused human review? 79 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 0MEDIUM 1LOW 76

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 79 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block53 hits · 53 pts
SeverityFileLineSnippetContext
LOWtsconfig.json1{COMMENT
LOWtools/build.js1#!/usr/bin/env nodeCOMMENT
LOWtools/build.js21//COMMENT
LOWtools/build.js41// browserify. Luckily, you can easily do two things to make the buildCOMMENT
LOWtools/sample_files/python.txt121 """Contains the navigational information for some part of the pageCOMMENT
LOWtest/index.js21COMMENT
LOWtest/detect/index.js41// languages.filter(hljs.autoDetection).forEach((language) => {COMMENT
LOWtest/detect/index.js61// }); // this is also required for the dynamic test generation above to workCOMMENT
LOWtest/detect/leaf/default.txt1#(variable)COMMENT
LOWtest/detect/step21/default.txt21#11=CARTESIAN_POINT('',(2.E0,2.E0,-2.E0));COMMENT
LOWtest/detect/r/default.txt41#> 3 versic… length-wi… 0.574 0.556 0.344 31.7 1.92e- 9 3COMMENT
LOWtest/regex/index.js161 }COMMENT
LOWtest/markup/gml/macro-override.txt1#macro CHEATS falseCOMMENT
LOWtest/markup/gml/region.txt1#regionCOMMENT
LOWtest/markup/gml/struct-in-ternary.txt1// FIXME: ternary eats the `:` in the struct literal here.COMMENT
LOWtest/markup/gml/colour-literals.txt1#000000COMMENT
LOWtest/markup/gml/jsdoc.txt1/// @func func(a)COMMENT
LOWtest/markup/gml/jsdoc.txt61// @ignoreCOMMENT
LOWtest/markup/leaf/default.txt1#(variable)COMMENT
LOWtest/markup/step21/default.txt21#11=CARTESIAN_POINT('',(2.E0,2.E0,-2.E0));COMMENT
LOWtest/markup/dart/comment-markdown.txt1/// Comment.COMMENT
LOWtest/markup/latex/parameters.txt1#7COMMENT
LOWtest/markup/rust/attributes.txt1#[foo]COMMENT
LOWtest/markup/rust/attributes.txt21#[doc = r#"see ] inside raw"#]COMMENT
LOWtest/markup/fsharp/fsi-and-preprocessor.txt1#if fooCOMMENT
LOWtest/markup/fsharp/fsi-and-preprocessor.txt21#r "nuget:FSharp.Data, 3.1.2";; // Load Nuget Package 'FSharp.Data' version '3.1.2'COMMENT
LOWtest/markup/r/roxygen.txt1#' A descriptionCOMMENT
LOWtest/markup/vbnet/directives.txt1#Region "MathFunctions"COMMENT
LOWtest/markup/php/attributes.txt1namespace Entity;COMMENT
LOWtest/markup/scala/using-directives.txt1//> using scala 3.3.0COMMENT
LOWtest/markup/cpp/preprocessor.txt1#include <iostream>COMMENT
LOWtest/markup/swift/keywords.txt21COMMENT
LOWtest/markup/swift/regex.txt21COMMENT
LOWtest/markup/objectivec/preprocessor.txt1#include <iostream>COMMENT
LOWdocs/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocs/conf.py61#language = NoneCOMMENT
LOWdocs/conf.py81#add_module_names = TrueCOMMENT
LOWdocs/conf.py121 "source_docs_path": "/docs/",COMMENT
LOWdocs/conf.py141# relative to this directory. They are copied after the builtin static files,COMMENT
LOWdocs/conf.py161# If false, no module index is generated.COMMENT
LOWdocs/conf.py181# base URL from which the finished HTML is served.COMMENT
LOWdocs/conf.py201#'preamble': '',COMMENT
LOWsrc/languages/cos.js41 // registered function - no need in them due to all functions are highlighted,COMMENT
LOWsrc/languages/cos.js61 // "$zconvert", "$zcrc", "$zcyc", "$zdascii", "$zdchar", "$zf",COMMENT
LOWsrc/languages/crystal.js161 // statement, since there would be no closing delimiter to match.COMMENT
LOWsrc/languages/ada.js41COMMENT
LOWsrc/languages/julia.js61 'while',COMMENT
LOWsrc/languages/julia.js121 // # built_in generator (Julia 1.5.2)COMMENT
LOWsrc/languages/python.js261COMMENT
LOWsrc/styles/nord.css21COMMENT
LOWsrc/styles/agate.css1/*!COMMENT
LOWsrc/lib/modes.js101 // note: this is not an exhaustive list of contractions, just popular onesCOMMENT
LOWsrc/lib/mode_compiler.js181COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALtest/detect/subunit/default.txt13test: bzrlib.tests.blackbox.test_add.TestAdd.test_add_control_dir(pre-views)CODE
CRITICALtest/detect/subunit/default.txt15successful: bzrlib.tests.blackbox.test_add.TestAdd.test_add_control_dir(pre-views) [ multipartCODE
Fake / Example Data15 hits · 18 pts
SeverityFileLineSnippetContext
LOWtest/detect/golo/default.txt14 let john = human("John Doe")CODE
LOWtest/detect/dockerfile/default.txt22ENV myName="John Doe" myDog=Rex\ The\ Dog \CODE
LOWtest/markup/golo/default.txt14 let john = human("John Doe")CODE
LOW⚡test/markup/gherkin/docstrings.txt5 Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,STRING
LOW⚡test/markup/gherkin/docstrings.txt5 Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,STRING
LOW⚡test/markup/gherkin/docstrings.txt13 Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,CODE
LOW⚡test/markup/gherkin/docstrings.txt13 Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,CODE
LOW⚡test/markup/gherkin/docstrings.expect.txt5 Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,CODE
LOW⚡test/markup/gherkin/docstrings.expect.txt5 Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,CODE
LOW⚡test/markup/gherkin/docstrings.expect.txt13 Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,CODE
LOW⚡test/markup/gherkin/docstrings.expect.txt13 Here is the first paragraph of my blog post. Lorem ipsum dolor sit amet,CODE
LOWtest/markup/dns/caa.txt4@ IN CAA 0 contactemail "admin@example.com"CODE
LOWsrc/languages/nix.js46 "placeholder",CODE
LOWsrc/languages/nix.js142 "placeholder",CODE
LOWsrc/languages/lib/css-shared.js294 'placeholder',CODE
Hyper-Verbose Identifiers5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtools/buildSizeReport.js103function reportRemovedFilesSection(base, _pr, removedFiles) {CODE
LOWtools/buildSizeReport.js120function reportChangedFilesSection(base, pr, changedFiles) {CODE
LOWtools/sample_files/python.txt101 def _substitute_if_appropriate(cls, ns, f):CODE
LOWtools/sample_files/python.txt1451 def default_candidate_generator(tag):CODE
LOWtest/regex/index.js113 function checkDisjointAlternatives(node) {CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py6# This file is execfile()d with the current directory set to its containing dir.COMMENT
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py14CODE
LOWdocs/conf.py14CODE
LOWdocs/conf.py15CODE