AI Slop Code Risk Monitor

ionic-team/capacitor

SlopCodeMonitor badge for ionic-team/capacitor Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️

2.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ionic-team/capacitor, a TypeScript project with 17,009 GitHub stars. SynthScan examined 52,007 lines of code across 387 source files, recording 78 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 2.1 (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.

2.1
Adjusted Signal
2.1
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
17.0K
Stars
TypeScript
Language
52.0K
Lines of Code
387
Files
78
Pattern Hits
2026-10-31
Scan Date
0.01
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 7.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.6/100 · LOW

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

Agent Over-Engineering Ratio 4.6/100 · LOW

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

PR Review Velocity Impact 10.6/100 · LOW

Which changes need focused human review? 78 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 1MEDIUM 8LOW 67

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 78 distinct pattern matches across 10 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.

Hyper-Verbose Identifiers41 hits · 42 pts
SeverityFileLineSnippetContext
LOWcore/cordova.js477 function assignOrWrapInDeprecateGetter(obj, key, value, message) {CODE
LOWcore/cordova.js683 function checkSubscriptionArgument(argument) {CODE
LOWcore/cordova.js883 function convertMessageToArgsNativeToJs(message) {CODE
LOWcli/test/migrate-uiscene-scene-delegate.spec.ts91function stripConfigurationForConnecting(source: string): string {CODE
LOWcli/src/plugin.ts45export function getIncludedPluginPackages(config: Config, platform: string): readonly string[] | undefined {CODE
LOWcli/src/common.ts248export async function getCapacitorPackageVersion(config: Config, platform: string): Promise<string> {CODE
LOWcli/src/common.ts273export async function getProjectPlatformDirectory(config: Config, platform: string): Promise<string | null> {CODE
LOW⚡cli/src/common.ts319export async function getKnownCommunityPlatforms(): Promise<string[]> {CODE
LOW⚡cli/src/common.ts327export async function getKnownEnterprisePlatforms(): Promise<string[]> {CODE
LOW⚡cli/src/common.ts331export async function isValidEnterprisePlatform(platform: string): Promise<boolean> {CODE
LOWcli/src/cordova.ts32export function generateCordovaPluginsJSFile(config: Config, plugins: Plugin[], platform: string): string {CODE
LOWcli/src/cordova.ts532export function getIncompatibleCordovaPlugins(platform: string): string[] {CODE
LOWcli/src/cordova.ts622export async function writeCordovaAndroidManifest(CODE
LOWcli/src/config.ts335async function determineXcodeWorkspaceDirAbs(nativeProjectDirAbs: string): Promise<string> {CODE
LOWcli/src/config.ts368async function determineAndroidStudioPath(os: OS): Promise<string> {CODE
LOWcli/src/tasks/migrate.ts341async function checkCapacitorMajorVersion(config: Config): Promise<number> {CODE
LOWcli/src/tasks/migrate.ts422async function getAndroidVariablesAndClasspaths(config: Config) {CODE
LOWcli/src/tasks/migrate-uiscene.ts218function extractConfigurationForConnecting(appDelegateSource: string): string | null {CODE
LOWcli/src/tasks/migrate-uiscene.ts242function insertBeforeAppDelegateClassEnd(source: string, snippet: string): string | null {CODE
LOWcli/src/tasks/open.ts48function createOpenablePlatformFilter(config: Config): (platform: string) => boolean {CODE
LOWcli/src/tasks/run.ts143function createRunnablePlatformFilter(config: Config): (platform: string) => boolean {CODE
LOWcli/src/tasks/build.ts81function createBuildablePlatformFilter(config: Config): (platform: string) => boolean {CODE
LOWcli/src/util/spm.ts54export async function checkPluginsForPackageSwift(config: Config, plugins: Plugin[]): Promise<Plugin[]> {CODE
LOWcli/src/util/spm.ts70export async function extractSPMPackageDirectory(config: Config): Promise<void> {CODE
LOWcli/src/util/spm.ts222export async function addInfoPlistDebugIfNeeded(config: Config): Promise<void> {CODE
LOWcli/src/util/spm.ts304export async function checkPackageTraitsRequirements(config: Config): Promise<string | null> {CODE
LOWcli/src/util/monorepotools.ts75export function findPackageRelativePathInMonorepo(packageName: string, currentPath: string): string | null {CODE
LOWcli/src/util/npm.ts75export function parseBlockedInstallScripts(commandOutput: string | null): BlockedInstallScript[] {CODE
LOWcli/src/util/npm.ts119export function hasBlockedCapacitorScripts(blocked: BlockedInstallScript[]): boolean {CODE
LOWcli/src/ios/update.ts98async function generateCordovaPackageFiles(cordovaPlugins: Plugin[], config: Config) {CODE
LOWcli/src/ios/update.ts104async function generateCordovaPackageFile(p: Plugin, config: Config) {CODE
LOWcli/src/ios/update.ts253async function writeGeneratedPackageSwift(p: Plugin, config: Config, iosPlatformVersion: string) {CODE
LOWcli/src/ios/update.ts356async function getRelativeCapacitoriOSPath(config: Config) {CODE
LOWcli/src/ios/update.ts703async function replaceFrameworkVariables(config: Config, prefsArray: any[], frameworkString: string) {CODE
LOWcli/src/android/common.ts52export async function editProjectSettingsAndroid(config: Config): Promise<void> {CODE
LOWcli/src/android/update.ts84async function findAndroidPluginClassesInPlugin(plugin: Plugin): Promise<PluginsJsonEntry[]> {CODE
LOWcli/src/android/update.ts224export async function handleCordovaPluginsGradle(config: Config, cordovaPlugins: Plugin[]): Promise<void> {CODE
LOWcli/src/android/update.ts386async function replaceFrameworkVariables(config: Config, prefsArray: any[], frameworkString: string) {CODE
LOW…s/Capacitor/Capacitor/Plugins/HttpRequestHandler.swift52open class HttpRequestHandler {CODE
LOW…/src/main/java/com/getcapacitor/plugin/SystemBars.java44 function capacitorSystemBarsCheckMetaViewport() {CODE
LOW…a/com/getcapacitor/plugin/util/HttpRequestHandler.java31public class HttpRequestHandler {CODE
Over-Commented Block21 hits · 21 pts
SeverityFileLineSnippetContext
LOWcli/src/ios/doctor.ts1import { check, checkWebDir } from '../common';COMMENT
LOWcli/src/android/add.ts21## This file is automatically generated by Android Studio.COMMENT
LOWios/Capacitor/Capacitor/Capacitor.h1#import <UIKit/UIKit.h>COMMENT
LOWios/Capacitor/Capacitor/KeyValueStore.swift1//COMMENT
LOWios/Capacitor/Capacitor/KeyValueStore.swift21///COMMENT
LOWios/Capacitor/Capacitor/KeyValueStore.swift41///COMMENT
LOWios/Capacitor/Capacitor/KeyValueStore.swift61///COMMENT
LOWios/Capacitor/Capacitor/KeyValueStore.swift81/// [NSFileWriteOutOfSpaceError](https://developer.apple.com/documentation/foundation/1448136-nserror_codes/nsfileCOMMENT
LOWios/Capacitor/Capacitor/KeyValueStore.swift141 try backend.delete(key)COMMENT
LOWios/Capacitor/Capacitor/CAPInstancePlugin.swift1//COMMENT
LOWios/Capacitor/Capacitor/Codable/JSValueEncoder.swift1//COMMENT
LOWios/Capacitor/Capacitor/Codable/JSValueDecoder.swift1//COMMENT
LOW…acitor/CapacitorTests/CapacitorTests-Bridging-Header.h1//COMMENT
LOW…s/CapacitorCordova/CapacitorCordova/CapacitorCordova.h1#import <UIKit/UIKit.h>COMMENT
LOW…s/CapacitorCordova/CapacitorCordova/CapacitorCordova.h21#import <Cordova/CDVScreenOrientationDelegate.h>COMMENT
LOW…torCordova/CapacitorCordova/Classes/Public/CDVPlugin.m61 // You can listen to more app notifications, see:COMMENT
LOW…dova/CapacitorCordova/Classes/Public/CDVAvailability.h21COMMENT
LOW…dova/CapacitorCordova/Classes/Public/CDVAvailability.h41#define __CORDOVA_2_5_0 20500COMMENT
LOW…dova/CapacitorCordova/Classes/Public/CDVAvailability.h61#define __CORDOVA_4_1_0 40100COMMENT
LOW…dova/CapacitorCordova/Classes/Public/CDVAvailability.h101COMMENT
LOW…CapacitorCordova/CapacitorCordova/Classes/Public/CDV.h21#import "CDVPlugin.h"COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALcli/src/cordova.ts204 config.app.extConfig.cordova.accessOrigins.map(async (host): Promise<string> => {CODE
CRITICALcli/src/ios/update.ts581 return `\n s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '${config.app.extConfig.ios.cordovaLinkerFlags.join(CODE
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMios/Capacitor/Capacitor/JSExport.swift179 CAPLog.print("Error: plugin method return type \(returnType) is not supported!")STRING
MEDIUMios/Capacitor/Capacitor/JSExport.swift205 CAPLog.print("Error while enumerating files")STRING
MEDIUMios/Capacitor/Capacitor/CapacitorBridge.swift343 CAPLog.print("Error registering plugins: \(error)")CODE
MEDIUMios/Capacitor/Capacitor/CapacitorBridge.swift571 CAPLog.print("Error: Plugin \(plugin.className ?? "") does not respond to method call \(selector).")STRING
MEDIUMios/Capacitor/Capacitor/CapacitorBridge.swift584 CAPLog.print("Error: Cordova Plugin mapping not found")STRING
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…d/capacitor/src/main/java/com/getcapacitor/Plugin.java573 * @deprecated use {@link #requestAllPermissions(PluginCall, String)} in conjunction with @CapacitorPluginCOMMENT
MEDIUM…d/capacitor/src/main/java/com/getcapacitor/Plugin.java586 * @deprecated use {@link #requestPermissionForAlias(String, PluginCall, String)} in conjunction with @CapacitorPlugCOMMENT
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHcli/test/migrate-uiscene-scan.spec.ts27 print("received url: \\(url)")CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcli/src/android/add.ts21## This file is automatically generated by Android Studio.COMMENT
Verbosity Indicators2 hits · 2 pts
SeverityFileLineSnippetContext
LOWios/Capacitor/Capacitor/CAPInstanceDescriptor.swift24 The purpose of this function is to hide the messy details of parsing the configuration(s) soCODE
LOW…/Capacitor/Capacitor/Plugins/CapacitorUrlRequest.swift26 // We need to check if the JSON is valid before attempting to serialize, as JSONSerialization.data will not throCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWios/Capacitor/CodableTests/NestedCodableTests.swift18 "fullName": "John Doe"CODE
LOWios/Capacitor/CodableTests/NestedCodableTests.swift29 fullName: "John Doe",CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/publish-android.sh20# Check if we need to publish a new native version of the Capacitor Android libraryCOMMENT