AI Slop Code Risk Monitor

nicklockwood/SwiftFormat

SlopCodeMonitor badge for nicklockwood/SwiftFormat Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A command-line tool and Xcode Extension for formatting Swift code

1.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for nicklockwood/SwiftFormat, a Swift project with 8,950 GitHub stars. SynthScan examined 234,029 lines of code across 681 source files, recording 195 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 1.0 (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.

1.0
Adjusted Signal
1.0
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
8.9K
Stars
Swift
Language
234.0K
Lines of Code
681
Files
195
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 3.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

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

Agent Over-Engineering Ratio 1.1/100 · LOW

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

PR Review Velocity Impact 5.2/100 · LOW

Which changes need focused human review? 195 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 9MEDIUM 5LOW 181

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 195 distinct pattern matches across 9 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 Block157 hits · 157 pts
SeverityFileLineSnippetContext
LOWSnapshots/Macros/Macros.swift121COMMENT
LOWSnapshots/Macros/Macros.swift141/// struct ShippingOptions {COMMENT
LOWSnapshots/Euclid/Sources/Mesh.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Mesh.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Utilities.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Utilities.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Bounds.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Bounds.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Transforms.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Transforms.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Paths.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Paths.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Vector.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Vector.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Euclid.h1//COMMENT
LOWSnapshots/Euclid/Sources/Plane.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Plane.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Polygon.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Polygon.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Shapes.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Shapes.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/Shapes.swift321 material: materialCOMMENT
LOWSnapshots/Euclid/Sources/SceneKit.swift1//COMMENT
LOWSnapshots/Euclid/Sources/SceneKit.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/CSG.swift1//COMMENT
LOWSnapshots/Euclid/Sources/CSG.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Euclid/Sources/CSG.swift61 }COMMENT
LOWSnapshots/Euclid/Sources/CSG.swift81 ap = BSPNode(mesh.polygons).clip(ap, .greaterThan, false)COMMENT
LOWSnapshots/Euclid/Sources/CSG.swift121COMMENT
LOWSnapshots/Euclid/Sources/Vertex.swift1//COMMENT
LOWSnapshots/Euclid/Sources/Vertex.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Sprinter/Sources/Sprinter.swift1//COMMENT
LOWSnapshots/Sprinter/Sources/Sprinter.swift21//COMMENT
LOWSnapshots/Expression/Tests/AnyExpressionTests.swift1//COMMENT
LOWSnapshots/Expression/Tests/AnyExpressionTests.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Expression/Tests/ExpressionTests.swift1//COMMENT
LOWSnapshots/Expression/Tests/ExpressionTests.swift21// copies or substantial portions of the Software.COMMENT
LOW…ts/Expression/Examples/Calculator/ViewController.swift1//COMMENT
LOW…shots/Expression/Examples/Calculator/AppDelegate.swift1//COMMENT
LOW…shots/Expression/Examples/Calculator/AppDelegate.swift21// copies or substantial portions of the Software.COMMENT
LOW…pshots/Expression/Examples/Layout/ViewController.swift1//COMMENT
LOWSnapshots/Expression/Examples/Layout/View+Layout.swift1//COMMENT
LOWSnapshots/Expression/Examples/Layout/AppDelegate.swift1//COMMENT
LOWSnapshots/Expression/Examples/Layout/AppDelegate.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Expression/Benchmarks/PerformanceTests.swift1//COMMENT
LOWSnapshots/Expression/Benchmarks/PerformanceTests.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Expression/Sources/Expression.swift1//COMMENT
LOWSnapshots/Expression/Sources/Expression.swift21//COMMENT
LOWSnapshots/Expression/Sources/AnyExpression.swift1//COMMENT
LOWSnapshots/Expression/Sources/AnyExpression.swift21//COMMENT
LOWSnapshots/Consumer/Tests/CompilerTests.swift1//COMMENT
LOWSnapshots/Consumer/Tests/ConsumerTests.swift1//COMMENT
LOWSnapshots/Consumer/Tests/ConsumerTests.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Consumer/Tests/PerformanceTests.swift1//COMMENT
LOWSnapshots/Consumer/Tests/PerformanceTests.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Consumer/Sources/Consumer.swift1//COMMENT
LOWSnapshots/Consumer/Sources/Consumer.swift21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Consumer/Sources/Consumer.h1//COMMENT
LOWSnapshots/Consumer/Sources/Consumer.h21// copies or substantial portions of the Software.COMMENT
LOWSnapshots/Consumer/Sources/ConsumerCompiler.swift1//COMMENT
97 more matches not shown…
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHTests/ParsingHelpersTests.swift0var foo: int { get { return 5 } set { _foo = newvalue } }STRING
HIGHTests/Rules/WrapPropertyBodiesTests.swift0var foo: int { get { return 5 } set { _foo = newvalue } }STRING
HIGHTests/Rules/RedundantReturnTests.swift0var foo: int { get { return 5 } set { _foo = newvalue } }STRING
HIGHTests/Rules/PreferForLoopTests.swift0for unsafe child in unsafe children { print(child) }STRING
HIGHTests/Rules/RedundantParensTests.swift0for unsafe child in unsafe children { print(child) }STRING
HIGHTests/Rules/IndentTests.swift0for unsafe child in unsafe children { print(child) }STRING
HIGHTests/Rules/TestSuiteAccessControlTests.swift0import testing struct myfeaturetests { func featureworks() { #expect(true) } }STRING
HIGHTests/Rules/ValidateTestCasesTests.swift0import testing struct myfeaturetests { func featureworks() { #expect(true) } }STRING
HIGHTests/Rules/UnusedPrivateDeclarationsTests.swift0import testing struct myfeaturetests { func featureworks() { #expect(true) } }STRING
Fake / Example Data18 hits · 18 pts
SeverityFileLineSnippetContext
LOWSnapshots/Layout/README.md2692 text="Lorem ipsum sit dolor "CODE
LOWSnapshots/Layout/Benchmark/ViewController.swift85 "text": "{i}. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididCODE
LOWSnapshots/Layout/Benchmark/ViewController.swift85 "text": "{i}. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididCODE
LOWSnapshots/Layout/Benchmark/ViewController.swift158 label.text = "\(i). Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOWSnapshots/Layout/Benchmark/ViewController.swift158 label.text = "\(i). Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt utCODE
LOW…apshots/Layout/PerformanceTests/PerformanceTests.swift29 "text": "\(i). Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inCODE
LOW…apshots/Layout/PerformanceTests/PerformanceTests.swift29 "text": "\(i). Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inCODE
LOW…apshots/Layout/PerformanceTests/PerformanceTests.swift90 label.text = "\(i). Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunCODE
LOW…apshots/Layout/PerformanceTests/PerformanceTests.swift90 label.text = "\(i). Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunCODE
LOW…apshots/Layout/PerformanceTests/PerformanceTests.swift166 "text": "{i}. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incCODE
LOW…apshots/Layout/PerformanceTests/PerformanceTests.swift166 "text": "{i}. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incCODE
LOW…apshots/Layout/PerformanceTests/PerformanceTests.swift194 "attributedText": "{i}. Lorem ipsum dolor sit amet, consectetur <b>adipiscing</b> elit, sed do eCODE
LOW…apshots/Layout/PerformanceTests/PerformanceTests.swift194 "attributedText": "{i}. Lorem ipsum dolor sit amet, consectetur <b>adipiscing</b> elit, sed do eCODE
LOWSnapshots/Layout/UIDesigner/EditViewController.swift89 "placeholder": "Class",CODE
LOWSnapshots/Layout/UIDesigner/EditViewController.swift168 "placeholder": name,CODE
LOWSnapshots/Sprinter/Tests/PerformanceTests.swift14let simpleFormat = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque finibus malesuada eros, at tincidunCODE
LOWSnapshots/Sprinter/Tests/PerformanceTests.swift14let simpleFormat = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque finibus malesuada eros, at tincidunCODE
LOWSnapshots/Expression/README.md330let expressionString = "lorem ipsum {foo + bar} dolor sit"CODE
Excessive Try-Catch Wrapping2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMSnapshots/Expression/README.md177 print("Error: \(error)")CODE
MEDIUMSnapshots/Issues/1061.swift20 print("Error handled")CODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMSources/CommandLine.swift1072 // TODO: need a more robust solutionSTRING
MEDIUMSources/Rules/SpaceAroundOperators.swift123 // TODO: make this check more robust, and remove redundant spaceCOMMENT
TODO Padding4 hits · 3 pts
SeverityFileLineSnippetContext
LOWRules.md949- /// TODO: implement Foo.bar() algorithmCODE
LOWRules.md950+ // TODO: implement Foo.bar() algorithmCODE
LOWSources/Rules/DocComments.swift126 - /// TODO: implement Foo.bar() algorithmSTRING
LOWSources/Rules/DocComments.swift127 + // TODO: implement Foo.bar() algorithmSTRING
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMScripts/prepare_release.sh25# Create a temporary file for the new changelog contentCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWScripts/prepare_release.sh5# Check if version argument is providedCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsite/site_content.rb261 def strip_badges_and_local_images(lines)CODE