AI Slop Code Risk Monitor

swiftlang/sourcekit-lsp

SlopCodeMonitor badge for swiftlang/sourcekit-lsp Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Language Server Protocol implementation for Swift and C-based languages

5.6 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for swiftlang/sourcekit-lsp, a Swift project with 3,924 GitHub stars. SynthScan examined 132,420 lines of code across 535 source files, recording 640 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 5.6 (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.

5.6
Adjusted Signal
5.6
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
3.9K
Stars
Swift
Language
132.4K
Lines of Code
535
Files
640
Pattern Hits
2026-10-31
Scan Date
0.04
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 20.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 5.1/100 · LOW

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

PR Review Velocity Impact 25.2/100 · MEDIUM

Which changes need focused human review? 640 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 23MEDIUM 7LOW 610

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 640 distinct pattern matches across 8 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 Block590 hits · 590 pts
SeverityFileLineSnippetContext
LOWPackage.swift781///COMMENT
LOW…letionScoringPerfTests/ScoringPerfTests.Provider.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…tionScoringPerfTests/ScoringPerfTests.Completion.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…mpletionScoringPerfTests/ScoringPerfTests.Corpus.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/CompletionScoringPerfTests/ScoringPerfTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…mpletionScoringPerfTests/ScoringPerfTests.Module.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…mpletionScoringPerfTests/CandidateBatchPerfTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/WorkspaceSymbolInfoTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…rceKitLSPTests/WorkspacePlaygroundDiscoveryTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/CompilationDatabaseTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…ceKitLSPTests/QualifiedWorkspaceSymbolQueryTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/DocumentSymbolTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…s/SourceKitLSPTests/ClosureCompletionFormatTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/SwiftCompileCommandsTest.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/CopyDestinationTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/DocumentColorTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/SwiftInterfaceTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/SwiftSignatureHelpTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/OnTypeFormattingTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/MainFilesProviderTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/SemanticTokensTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/SyntaxRefactorTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/RangeFormattingTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/ExpandMacroTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/TypeDefinitionTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/RenameTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/FormattingTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/DependencyTrackingTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/WorkspaceMembersTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…ts/SourceKitLSPTests/WorkspaceTestDiscoveryTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/HoverTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/LocalSwiftTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/SwiftCompletionTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/IfGuardConversionTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/LifecycleTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/ReferencesTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/ClangdTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/TypeHierarchyTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/RenameAssertions.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/BuildServerTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/PullDiagnosticsTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/ExpectedIndexTaskTracker.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/ExecuteCommandTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/CodeActionTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/CodeActionTests.swift3821 ]COMMENT
LOWTests/SourceKitLSPTests/CrossLanguageRenameTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/IndexTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/WorkspaceSymbolsTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/FoldingRangeTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/PublishDiagnosticsTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/CallHierarchyTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/InlayHintTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/LocalClangTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/CodeLensTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…ts/SourceKitLSPTests/SourcekitdCoreInjectorTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…sts/SourceKitLSPTests/DocumentTestDiscoveryTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/SelectionRangeTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/ImplementationTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOWTests/SourceKitLSPTests/DoccDocumentationTests.swift1//===----------------------------------------------------------------------===//COMMENT
LOW…rceKitLSPTests/RewriteSourceKitPlaceholdersTests.swift1//===----------------------------------------------------------------------===//COMMENT
530 more matches not shown…
Cross-File Repetition22 hits · 110 pts
SeverityFileLineSnippetContext
HIGH…rceKitLSPTests/WorkspacePlaygroundDiscoveryTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "clib"), .target(name: "mylibrary"), ] )STRING
HIGHTests/SourceKitLSPTests/BackgroundIndexingTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "clib"), .target(name: "mylibrary"), ] )STRING
HIGHTests/SourceKitLSPTests/DocCGoToDefinitionTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "clib"), .target(name: "mylibrary"), ] )STRING
HIGH…rceKitLSPTests/WorkspacePlaygroundDiscoveryTests.swift0let package = package( name: "mylibrary", targets: [.testtarget(name: "mylibrarytests")] )STRING
HIGH…ts/SourceKitLSPTests/WorkspaceTestDiscoveryTests.swift0let package = package( name: "mylibrary", targets: [.testtarget(name: "mylibrarytests")] )STRING
HIGH…sts/SourceKitLSPTests/DocumentTestDiscoveryTests.swift0let package = package( name: "mylibrary", targets: [.testtarget(name: "mylibrarytests")] )STRING
HIGHTests/SourceKitLSPTests/TypeDefinitionTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/RenameTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/DependencyTrackingTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/PullDiagnosticsTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/CrossLanguageRenameTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/PublishDiagnosticsTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/InlayHintTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/BackgroundIndexingTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/DefinitionTests.swift0let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"]STRING
HIGHTests/SourceKitLSPTests/WorkspaceSymbolsTests.swift0// swift-tools-version: 5.7 import packagedescription let package = package( name: "mylibrary", targets: [.target(name: STRING
HIGHTests/SourceKitLSPTests/SwiftPMIntegrationTests.swift0// swift-tools-version: 5.7 import packagedescription let package = package( name: "mylibrary", targets: [.target(name: STRING
HIGHSources/SKTestSupport/SwiftPMTestProject.swift0// swift-tools-version: 5.7 import packagedescription let package = package( name: "mylibrary", targets: [.target(name: STRING
HIGHSources/Diagnose/ReduceCommand.swift0the toolchain used to reduce the swift-frontend issue. \ if not specified, the toolchain is found in the same way that sSTRING
HIGHSources/Diagnose/DiagnoseCommand.swift0the toolchain used to reduce the swift-frontend issue. \ if not specified, the toolchain is found in the same way that sSTRING
HIGHSources/Diagnose/IndexCommand.swift0the toolchain used to reduce the swift-frontend issue. \ if not specified, the toolchain is found in the same way that sSTRING
HIGHSources/Diagnose/ReduceFrontendCommand.swift0the toolchain used to reduce the swift-frontend issue. \ if not specified, the toolchain is found in the same way that sSTRING
Hyper-Verbose Identifiers17 hits · 17 pts
SeverityFileLineSnippetContext
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift69 def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]:CODE
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift132 def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]:CODE
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift138 def workspace_did_change_watched_files(self, notification: Dict[str, object]) -> None:CODE
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift211 def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]:CODE
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift221 def workspace_did_change_watched_files(self, notification: Dict[str, object]) -> None:CODE
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift298 def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]:CODE
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift364 def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]:CODE
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift413 def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]:CODE
LOW…dServerIntegrationTests/ExternalBuildServerTests.swift479 def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]:CODE
LOW…tegrationTests/LegacyBuildServerBuildSystemTests.swift75 def send_delayed_options_changed(self, uri: str):CODE
LOWUtilities/build-script-helper.py172def get_swiftpm_environment_variables(swift_exec: str, args: argparse.Namespace) -> Dict[str, str]:CODE
LOWSources/SwiftSourceKitPlugin/Plugin.swift31final class RequestHandler: Sendable {CODE
LOWSources/Csourcekitd/include/sourcekitd_functions.h49typedef sourcekitd_api_variant_type_t (*sourcekitd_api_variant_functions_get_type_t)(CODE
LOWSources/Csourcekitd/include/plugin.h21typedef sourcekitd_api_variant_type_t (*sourcekitd_api_variant_functions_get_type_t)(CODE
LOWSources/SKTestSupport/INPUTS/AbstractBuildServer.py152 def textdocument_sourcekitoptions(CODE
LOWSources/SKTestSupport/INPUTS/AbstractBuildServer.py172 def workspace_did_change_watched_files(self, notification: Dict[str, object]) -> None:CODE
LOWSources/SKTestSupport/INPUTS/AbstractBuildServer.py185 def send_sourcekit_options_changed(self, uri: str, options: List[str]):CODE
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMUtilities/build-script-helper.py25# -----------------------------------------------------------------------------COMMENT
MEDIUMUtilities/build-script-helper.py70# -----------------------------------------------------------------------------COMMENT
MEDIUMUtilities/build-script-helper.py94# -----------------------------------------------------------------------------COMMENT
MEDIUMUtilities/build-script-helper.py314# -----------------------------------------------------------------------------COMMENT
AI Slop Vocabulary3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMTests/SourceKitLSPTests/WorkspaceTests.swift1199 // Essentially make sure that build settings never arrive, so we are forced to return fallback arguments.STRING
MEDIUMSources/SwiftExtensions/Cache.swift13/// Essentially a dictionary where results are asynchronously computed on access.COMMENT
MEDIUMSources/SemanticIndex/CheckedIndex.swift22/// Essentially a `DocumentManager` from the `SourceKitLSP` module.COMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHUtilities/build-script-helper.py328 parser.add_argument('--sanitize', action='append', help='build using the given sanitizer(s) (address|thread|undeCODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWUtilities/build-script-helper.py98CODE
LOWSources/SKTestSupport/INPUTS/AbstractBuildServer.py72CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…tionScoringTestSupport/INPUTS/CommonFunctionTerms.json240{ "word" : "placeholder", "count" : 20},CODE