AI Slop Code Risk Monitor

realm/SwiftLint

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

A tool to enforce Swift style and conventions.

0.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for realm/SwiftLint, a Swift project with 19,780 GitHub stars. SynthScan examined 110,107 lines of code across 911 source files, recording 60 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 0.7 (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.7
Adjusted Signal
0.7
Raw Pattern Score
100%
Time Factor
2026-10-16
Last Push
19.8K
Stars
Swift
Language
110.1K
Lines of Code
911
Files
60
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 2.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.7/100 · LOW

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

PR Review Velocity Impact 3.4/100 · LOW

Which changes need focused human review? 60 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 3MEDIUM 0LOW 57

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 60 distinct pattern matches across 2 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 Block57 hits · 57 pts
SeverityFileLineSnippetContext
LOW…wiftLintBuildToolPlugin/SwiftLintBuildToolPlugin.swift21 }COMMENT
LOWSource/SwiftLintCore/Models/RuleDescription.swift21COMMENT
LOWSource/SwiftLintCore/Models/RuleDescription.swift41 public let triggeringExamples: [Example]COMMENT
LOWSource/SwiftLintCore/Models/RuleDescription.swift81 ///COMMENT
LOW…wiftLintCore/Models/RuleConfigurationDescription.swift341}COMMENT
LOW…wiftLintCore/Models/RuleConfigurationDescription.swift401///COMMENT
LOW…wiftLintCore/Models/RuleConfigurationDescription.swift421/// translated into `my_option` in the `.swiftlint.yml` configuration file.COMMENT
LOW…wiftLintCore/Models/RuleConfigurationDescription.swift441/// 2. It can be represented as a separate nested configuration. In this case, it must not have set the `inline` flag toCOMMENT
LOW…wiftLintCore/Models/RuleConfigurationDescription.swift501 /// Optional documentation describing this configuration entry in rendered docs.COMMENT
LOW…wiftLintCore/Models/RuleConfigurationDescription.swift541 postprocessor(&wrappedValue)COMMENT
LOWSource/SwiftLintCore/Models/Example.swift1import FoundationCOMMENT
LOWSource/SwiftLintCore/Models/Example.swift21 /// - SeeAlso: addEmoji(_:)COMMENT
LOWSource/SwiftLintCore/Models/Example.swift41 /// It can be set to `true` if an example has mainly been added as another test case, but is not suitableCOMMENT
LOWSource/SwiftLintCore/Models/Region.swift1import SwiftSyntaxCOMMENT
LOWSource/SwiftLintCore/Models/Region.swift41 }COMMENT
LOWSource/SwiftLintCore/Models/AccessControlLevel.swift1/// The accessibility of a Swift source declaration.COMMENT
LOWSource/SwiftLintCore/Extensions/Array+SwiftLint.swift121 ///COMMENT
LOW…urce/SwiftLintCore/Extensions/Collection+Windows.swift1// swiftlint:disable:next blanket_disable_commandCOMMENT
LOW…urce/SwiftLintCore/Extensions/Collection+Windows.swift21 /// Returns a collection of all the overlapping slices of a given size.COMMENT
LOW…urce/SwiftLintCore/Extensions/Collection+Windows.swift161 // `endIndex` and the index before it both have `base.endIndex` as theirCOMMENT
LOW…tLintCore/Extensions/SwiftLintFile+BodyLineCount.swift1import SwiftSyntaxCOMMENT
LOW…tLintCore/Extensions/SwiftLintFile+BodyLineCount.swift21 //COMMENT
LOW…Core/Extensions/RandomAccessCollection+Swiftlint.swift1public extension RandomAccessCollection where Index == Int {COMMENT
LOW…Core/Extensions/RandomAccessCollection+Swiftlint.swift21 /// - complexity: O(log(*n*)), where *n* is the length of the collection.COMMENT
LOWSource/SwiftLintCore/Protocols/CollectingRule.swift1/// Type-erased protocol used to check whether a rule is collectable.COMMENT
LOWSource/SwiftLintCore/Protocols/CollectingRule.swift21 /// - returns: The collected file information.COMMENT
LOWSource/SwiftLintCore/Protocols/Rule.swift21 /// Creates a rule by applying its configuration.COMMENT
LOWSource/SwiftLintCore/Protocols/Rule.swift41 func validate(file: SwiftLintFile, compilerArguments: [String]) -> [StyleViolation]COMMENT
LOWSource/SwiftLintCore/Protocols/Rule.swift61 /// - parameter file: The file for which to collect info.COMMENT
LOWSource/SwiftLintCore/Protocols/Rule.swift81 /// - Parameters:COMMENT
LOWSource/SwiftLintCore/Protocols/Rule.swift161public extension Rule {COMMENT
LOWSource/SwiftLintCore/Protocols/Rule.swift181 /// - parameter file: The file for which to correct violations.COMMENT
LOWSource/SwiftLintCore/Protocols/SwiftSyntaxRule.swift1import SwiftSyntaxCOMMENT
LOWSource/SwiftLintCore/Protocols/SwiftSyntaxRule.swift81/// A violation produced by `ViolationsSyntaxVisitor`s.COMMENT
LOWSource/SwiftLintCore/Protocols/SwiftSyntaxRule.swift101 self.replacement = replacementCOMMENT
LOWSource/SwiftLintCore/Protocols/ASTRule.swift1import SourceKittenFrameworkCOMMENT
LOWSource/SwiftLintCore/Protocols/ASTRule.swift21 /// - parameter dictionary: The `SourceKittenDictionary` representing the source structure from which to extract theCOMMENT
LOWSource/SwiftLintCore/Helpers/Macros.swift101)COMMENT
LOW…ntBuiltInRules/Rules/Lint/InvisibleCharacterRule.swift21 #"let url = "https://example.com/api""#,COMMENT
LOW…LintBuiltInRules/Rules/Lint/RequiredEnumCaseRule.swift1import SwiftLintCoreCOMMENT
LOW…LintBuiltInRules/Rules/Lint/RequiredEnumCaseRule.swift21/// case unauthorized:COMMENT
LOW…LintBuiltInRules/Rules/Lint/RequiredEnumCaseRule.swift41/// ````COMMENT
LOW…les/Idiomatic/UnneededSynthesizedInitializerRule.swift1// swiftlint:disable file_headerCOMMENT
LOW…ltInRules/Rules/Idiomatic/XCTSpecificMatcherRule.swift141 //COMMENT
LOWSource/SwiftLintFramework/UpdateChecker.swift1// swiftlint:disable file_headerCOMMENT
LOW…e/SwiftLintFramework/Configuration/Configuration.swift141 /// - parameter includedPaths: Included paths to lint.COMMENT
LOW…ftLintFramework/Extensions/FileManager+SwiftLint.swift1import FilenameMatcherCOMMENT
LOWSource/SwiftLintExtraRules/ExtraRules.swift1// DO NOT EDITCOMMENT
LOWSource/SwiftLintBase/URL+SwiftLint.swift1import FoundationCOMMENT
LOWTests/FileSystemAccessTests/ConfigurationTests.swift41 #expect(!config.allowZeroLintableFiles)COMMENT
LOWTests/FileSystemAccessTests/GlobTests.swift221 // `subpathsOfDirectory(atPath:)` throw and drop every directory it hadCOMMENT
LOW…s/BuiltInRulesTests/LineLengthConfigurationTests.swift161 try configuration.apply(configuration: config1)COMMENT
LOWTests/FrameworkTests/SwiftSyntaxKindBridgeTests.swift41 // Test operator and type mappingsCOMMENT
LOWTests/FrameworkTests/SwiftVersionTests.swift81 let version = "5.5.0"COMMENT
LOWTests/FrameworkTests/SwiftVersionTests.swift101 #expect(SwiftVersion(rawValue: "5.1.1") < SwiftVersion(rawValue: "5.1.2"))COMMENT
LOWTests/FrameworkTests/StringViewExtensionTests.swift21 #expect(StringView("a").byteOffset(forLine: 1, bytePosition: 1) == 0)COMMENT
LOWTests/FrameworkTests/Resources/test.txt1// My file withCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…s/Rules/Style/ComputedAccessorsOrderRuleExamples.swift0class foo { subscript(i: int) -> int { ↓get { return 20 } } }STRING
HIGH…ltInRules/Rules/Style/ImplicitGetterRuleExamples.swift0class foo { subscript(i: int) -> int { ↓get { return 20 } } }STRING
HIGHTests/BuiltInRulesTests/ImplicitGetterRuleTests.swift0class foo { subscript(i: int) -> int { ↓get { return 20 } } }STRING