AI Slop Code RIsk Monitor

hmlongco/Factory

A modern approach to Container-Based Dependency Injection for Swift and SwiftUI.

7.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for hmlongco/Factory, a Swift project with 2,914 GitHub stars. SynthScan examined 16,528 lines of code across 704 source files, recording 105 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 7.3 (Moderate 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.

7.3
Adjusted Signal
7.3
Raw Pattern Score
100%
Time Factor
2026-09-25
Last Push
2.9K
Stars
Swift
Language
16.5K
Lines of Code
704
Files
105
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 29.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 0.9/100 · LOW

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

Agent Over-Engineering Ratio 0.6/100 · LOW

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

PR Review Velocity Impact 32.3/100 · MEDIUM

Which changes need focused human review? 105 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 0HIGH 0MEDIUM 12LOW 93

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 105 distinct pattern matches across 7 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 Block83 hits · 83 pts
SeverityFileLineSnippetContext
LOWFactoryDemo/FactoryDemoTests/ContainerTrait.swift1//COMMENT
LOWFactoryDemo/FactoryDemoTests/ContainerTrait.swift21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOW…toryDemo/FactoryDemo/FactoryDemoApp+AutoRegister.swift81// MockServiceN(0)COMMENT
LOWFactoryDemo/FactoryDemo/ContentView.swift121// ContentView(model: model1)COMMENT
LOWFactoryDemo/FactoryDemo/ContentView.swift141// }COMMENT
LOW…ctoryDemo/FactoryDemo/Concepts/FunctionInjection.swift1//COMMENT
LOW…ctoryDemo/FactoryDemo/Concepts/FunctionInjection.swift21// @Injected(\.openURL) var openURLCOMMENT
LOWFactoryDemo/FactoryDemo/Concepts/Tags.swift1//COMMENT
LOWFactoryDemo/FactoryDemo/Concepts/Tags.swift61//struct PipelineProcessorTag : Tag {COMMENT
LOWFactoryDemo/FactoryDemo/Concepts/Tags.swift81// var priority: Int { get }COMMENT
LOWFactoryDemo/FactoryDemo/Concepts/Tags.swift101// }COMMENT
LOWFactoryDemo/FactoryDemo/Concepts/Tags.swift121// for anyTaggedFactory in taggedFactories.values {COMMENT
LOWFactoryDemo/FactoryDemo/Concepts/Tags.swift141///// tagged registrationsCOMMENT
LOW…/FactoryDemo/Concepts/TestNonExtendableContainer.swift1//COMMENT
LOWFactoryDemo/Modules/Networking/Networking/Networking.h1//COMMENT
LOWFactoryDemo/Modules/Common/Common/Common.h1//COMMENT
LOWTests/FactoryTests/SwiftTesting/ParallelTests.swift61 func commonTests(_ value: String) {COMMENT
LOWTests/FactoryTests/SwiftTesting/ParallelTests.swift121 let sut1 = TaskLocalUseCase()COMMENT
LOWTests/FactoryTests/SwiftTesting/ParallelTests.swift201 await isolatedAsyncTests("baz")COMMENT
LOWTests/FactoryTests/SwiftTesting/ParallelTests.swift221 #expect(sut2.fooBarBazSingleton.value == value)COMMENT
LOW…sts/FactoryTests/XCTests/FactoryPerformanceTests.swift1//COMMENT
LOWSources/FactoryTesting/ContainerTrait.swift1//COMMENT
LOWSources/FactoryTesting/ContainerTrait.swift21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift1//COMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift41/// self { MyService() }COMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift61COMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift81 /// Note this should be defined as a @TaskLocal variable to be able to use its isolation mechanism, which is especiaCOMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift121 }COMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift181}COMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift241 /// Syntactic sugar allows container to create a parameter factory whose optional registration is promised before reCOMMENT
LOWSources/FactoryKit/FactoryKit/Containers.swift481COMMENT
LOWSources/FactoryKit/FactoryKit/Scopes.swift1//COMMENT
LOWSources/FactoryKit/FactoryKit/Scopes.swift21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOWSources/FactoryKit/FactoryKit/Scopes.swift41/// var service: Factory<ServiceType> {COMMENT
LOWSources/FactoryKit/FactoryKit/Contexts.swift1//COMMENT
LOWSources/FactoryKit/FactoryKit/Contexts.swift21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift1//COMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift41/// @Injected(\.myService) var service1COMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift101/// ```swiftCOMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift181 /// ```swiftCOMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift201/// ```swiftCOMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift281 /// ```swiftCOMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift301/// }COMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift361 }COMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift401 /// Allows the user to force a Factory resolution at their discretion.COMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift421/// }COMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift461 public init(_ wrappedValue: T) {COMMENT
LOWSources/FactoryKit/FactoryKit/Injections.swift481@MainActor @propertyWrapper public struct InjectedObservable<T>: DynamicProperty where T: Observation.Observable {COMMENT
LOWSources/FactoryKit/FactoryKit/Resolver.swift1//COMMENT
LOWSources/FactoryKit/FactoryKit/Resolver.swift21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOWSources/FactoryKit/FactoryKit/Modifiers.swift1//COMMENT
LOWSources/FactoryKit/FactoryKit/Modifiers.swift61 registration.register(scope: scope)COMMENT
LOWSources/FactoryKit/FactoryKit/Modifiers.swift101 /// Syntactic sugar defines this Factory's dependency scope to be singleton. See ``Scope/Singleton-swift.class``.COMMENT
LOWSources/FactoryKit/FactoryKit/Modifiers.swift141COMMENT
LOWSources/FactoryKit/FactoryKit/Modifiers.swift161 /// Adds a factory specific decorator. The decorator will *always* be called with the resolved dependencyCOMMENT
LOWSources/FactoryKit/FactoryKit/Modifiers.swift281 COMMENT
LOWSources/FactoryKit/FactoryKit/Modifiers.swift301 }COMMENT
LOWSources/FactoryKit/FactoryKit/Modifiers.swift321 /// MainView()COMMENT
23 more matches not shown…
Modern AI Meta-Vocabulary6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…t/managedcontainer/promised(key:file:line:)-1lq85.json1{"schemaVersion":{"patch":0,"minor":3,"major":0},"abstract":[{"type":"text","text":"Syntactic sugar allows container to CODE
MEDIUM…kit/managedcontainer/callasfunction(key:_:)-2xdpp.json1{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/factorykit\/managedcontaCODE
MEDIUM…actorykit/container/promised(key:file:line:)-f5q7.json1{"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/factorykit\/container\/pCODE
MEDIUM…factorykit/container/callasfunction(key:_:)-9dimj.json1{"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"Syntactic sugar allows container to CODE
MEDIUM…ocumentation/factorykit/factory/preview(factory:).json1{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":CODE
MEDIUM…a/documentation/factorykit/factory/init(_:key:_:).json1{"schemaVersion":{"minor":3,"major":0,"patch":0},"abstract":[{"text":"Public initializer creates a Factory capable of maCODE
AI Slop Vocabulary5 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMFactoryDemo/FactoryDemoTests/ContainerTrait.swift44/// That said, it's also possible to leverage this behavior in `XCTestCase` by using the `@TaskLocal` provided `withValCOMMENT
LOWdocs/data/documentation/factorykit/testing.json1{"schemaVersion":{"major":0,"minor":3,"patch":0},"seeAlsoSections":[{"identifiers":["doc:\/\/FactoryKit\/documentation\/CODE
LOWdocs/data/documentation/factorykit/contexts.json1{"hierarchy":{"paths":[["doc:\/\/FactoryKit\/documentation\/FactoryKit"]]},"metadata":{"modules":[{"name":"FactoryKit"}]CODE
LOWdocs/data/documentation/factorykit/modifiers.json1{"seeAlsoSections":[{"title":"Advanced Topics","generated":true,"anchor":"Advanced-Topics","identifiers":["doc:\/\/FactoCODE
MEDIUMSources/FactoryTesting/ContainerTrait.swift44/// That said, it's also possible to leverage this behavior in `XCTestCase` by using the `@TaskLocal` provided `withValCOMMENT
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMdocs/data/documentation/factorykit/scopes.json1{"sections":[],"seeAlsoSections":[{"identifiers":["doc:\/\/FactoryKit\/documentation\/FactoryKit\/GettingStarted","doc:\CODE
MEDIUMdocs/data/documentation/factorykit/testing.json1{"schemaVersion":{"major":0,"minor":3,"patch":0},"seeAlsoSections":[{"identifiers":["doc:\/\/FactoryKit\/documentation\/CODE
MEDIUMdocs/data/documentation/factorykit/containers.json1{"hierarchy":{"paths":[["doc:\/\/FactoryKit\/documentation\/FactoryKit"]]},"kind":"article","metadata":{"role":"article"CODE
LOWdocs/data/documentation/factorykit/contexts.json1{"hierarchy":{"paths":[["doc:\/\/FactoryKit\/documentation\/FactoryKit"]]},"metadata":{"modules":[{"name":"FactoryKit"}]CODE
LOWdocs/data/documentation/factorykit/modifiers.json1{"seeAlsoSections":[{"title":"Advanced Topics","generated":true,"anchor":"Advanced-Topics","identifiers":["doc:\/\/FactoCODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/js/highlight-js-scss-js.6dc40f91.js10(self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[672],{1611:function(e){const i=CODE
LOWdocs/js/chunk-vendors.88e02fc3.js21var r=Object.freeze({}),o=Array.isArray;function i(t){return void 0===t||null===t}function a(t){return void 0!==t&&null!CODE
LOWdocs/js/highlight-js-css-js.6a1f0b6c.js10(self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[175],{8612:function(e){const i=CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMSources/FactoryKit/FactoryKit/Factory.swift43/// ## Defining a FactoryCOMMENT
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/data/documentation/factorykit/actors.json1{"kind":"article","hierarchy":{"paths":[["doc:\/\/FactoryKit\/documentation\/FactoryKit"]]},"identifier":{"interfaceLangCODE
LOWSources/FactoryKit/FactoryKit.docc/Advanced/Actors.md104final class DataManager {CODE