Language Server Protocol implementation for Swift and C-based languages
This report summarizes scanner evidence for swiftlang/sourcekit-lsp, a Swift project with 3,917 GitHub stars. SynthScan examined 130,498 lines of code across 531 source files, recording 636 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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 611 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 40 finding(s).
Which changes need focused human review? 636 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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.
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.
The scanner identified 636 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Package.swift | 781 | /// | COMMENT |
| LOW | …letionScoringPerfTests/ScoringPerfTests.Provider.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …tionScoringPerfTests/ScoringPerfTests.Completion.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …mpletionScoringPerfTests/ScoringPerfTests.Corpus.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/CompletionScoringPerfTests/ScoringPerfTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …mpletionScoringPerfTests/ScoringPerfTests.Module.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …mpletionScoringPerfTests/CandidateBatchPerfTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/WorkspaceSymbolInfoTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …rceKitLSPTests/WorkspacePlaygroundDiscoveryTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/CompilationDatabaseTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …ceKitLSPTests/QualifiedWorkspaceSymbolQueryTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/DocumentSymbolTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …s/SourceKitLSPTests/ClosureCompletionFormatTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/SwiftCompileCommandsTest.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/CopyDestinationTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/DocumentColorTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/SwiftInterfaceTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/SwiftSignatureHelpTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/OnTypeFormattingTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/MainFilesProviderTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/SemanticTokensTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/SyntaxRefactorTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/RangeFormattingTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/ExpandMacroTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/TypeDefinitionTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/RenameTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/FormattingTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/DependencyTrackingTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …ts/SourceKitLSPTests/WorkspaceTestDiscoveryTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/HoverTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/LocalSwiftTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/SwiftCompletionTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/IfGuardConversionTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/LifecycleTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/ReferencesTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/ClangdTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/TypeHierarchyTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/RenameAssertions.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/BuildServerTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/PullDiagnosticsTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/ExpectedIndexTaskTracker.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/ExecuteCommandTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/CodeActionTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/CodeActionTests.swift | 3821 | ] | COMMENT |
| LOW | Tests/SourceKitLSPTests/CrossLanguageRenameTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/IndexTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/WorkspaceSymbolsTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/FoldingRangeTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/PublishDiagnosticsTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/CallHierarchyTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/InlayHintTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/LocalClangTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/CodeLensTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …ts/SourceKitLSPTests/SourcekitdCoreInjectorTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …sts/SourceKitLSPTests/DocumentTestDiscoveryTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/SelectionRangeTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/ImplementationTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | Tests/SourceKitLSPTests/DoccDocumentationTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …rceKitLSPTests/RewriteSourceKitPlaceholdersTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| LOW | …/SourceKitLSPTests/SwiftCompletetionSnippetTests.swift | 1 | //===----------------------------------------------------------------------===// | COMMENT |
| 529 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …rceKitLSPTests/WorkspacePlaygroundDiscoveryTests.swift | 0 | let package = package( name: "mylibrary", targets: [.testtarget(name: "mylibrarytests")] ) | STRING |
| HIGH | …ts/SourceKitLSPTests/WorkspaceTestDiscoveryTests.swift | 0 | let package = package( name: "mylibrary", targets: [.testtarget(name: "mylibrarytests")] ) | STRING |
| HIGH | …sts/SourceKitLSPTests/DocumentTestDiscoveryTests.swift | 0 | let package = package( name: "mylibrary", targets: [.testtarget(name: "mylibrarytests")] ) | STRING |
| HIGH | Tests/SourceKitLSPTests/TypeDefinitionTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/RenameTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/DependencyTrackingTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/PullDiagnosticsTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/CrossLanguageRenameTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/PublishDiagnosticsTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/InlayHintTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/BackgroundIndexingTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/DefinitionTests.swift | 0 | let package = package( name: "mylibrary", targets: [ .target(name: "liba"), .target(name: "libb", dependencies: ["liba"] | STRING |
| HIGH | Tests/SourceKitLSPTests/WorkspaceSymbolsTests.swift | 0 | // swift-tools-version: 5.7 import packagedescription let package = package( name: "mylibrary", targets: [.target(name: | STRING |
| HIGH | Tests/SourceKitLSPTests/SwiftPMIntegrationTests.swift | 0 | // swift-tools-version: 5.7 import packagedescription let package = package( name: "mylibrary", targets: [.target(name: | STRING |
| HIGH | Sources/SKTestSupport/SwiftPMTestProject.swift | 0 | // swift-tools-version: 5.7 import packagedescription let package = package( name: "mylibrary", targets: [.target(name: | STRING |
| HIGH | Sources/Diagnose/ReduceCommand.swift | 0 | the toolchain used to reduce the swift-frontend issue. \ if not specified, the toolchain is found in the same way that s | STRING |
| HIGH | Sources/Diagnose/DiagnoseCommand.swift | 0 | the toolchain used to reduce the swift-frontend issue. \ if not specified, the toolchain is found in the same way that s | STRING |
| HIGH | Sources/Diagnose/IndexCommand.swift | 0 | the toolchain used to reduce the swift-frontend issue. \ if not specified, the toolchain is found in the same way that s | STRING |
| HIGH | Sources/Diagnose/ReduceFrontendCommand.swift | 0 | the toolchain used to reduce the swift-frontend issue. \ if not specified, the toolchain is found in the same way that s | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 69 | def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]: | CODE |
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 132 | def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]: | CODE |
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 138 | def workspace_did_change_watched_files(self, notification: Dict[str, object]) -> None: | CODE |
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 211 | def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]: | CODE |
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 221 | def workspace_did_change_watched_files(self, notification: Dict[str, object]) -> None: | CODE |
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 298 | def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]: | CODE |
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 364 | def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]: | CODE |
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 413 | def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]: | CODE |
| LOW | …dServerIntegrationTests/ExternalBuildServerTests.swift | 479 | def textdocument_sourcekitoptions(self, request: Dict[str, object]) -> Dict[str, object]: | CODE |
| LOW | …tegrationTests/LegacyBuildServerBuildSystemTests.swift | 75 | def send_delayed_options_changed(self, uri: str): | CODE |
| LOW | Utilities/build-script-helper.py | 170 | def get_swiftpm_environment_variables(swift_exec: str, args: argparse.Namespace) -> Dict[str, str]: | CODE |
| LOW | Sources/SwiftSourceKitPlugin/Plugin.swift | 31 | final class RequestHandler: Sendable { | CODE |
| LOW | Sources/Csourcekitd/include/sourcekitd_functions.h | 49 | typedef sourcekitd_api_variant_type_t (*sourcekitd_api_variant_functions_get_type_t)( | CODE |
| LOW | Sources/Csourcekitd/include/plugin.h | 21 | typedef sourcekitd_api_variant_type_t (*sourcekitd_api_variant_functions_get_type_t)( | CODE |
| LOW | Sources/SKTestSupport/INPUTS/AbstractBuildServer.py | 152 | def textdocument_sourcekitoptions( | CODE |
| LOW | Sources/SKTestSupport/INPUTS/AbstractBuildServer.py | 172 | def workspace_did_change_watched_files(self, notification: Dict[str, object]) -> None: | CODE |
| LOW | Sources/SKTestSupport/INPUTS/AbstractBuildServer.py | 185 | def send_sourcekit_options_changed(self, uri: str, options: List[str]): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Utilities/build-script-helper.py | 25 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Utilities/build-script-helper.py | 70 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Utilities/build-script-helper.py | 94 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Utilities/build-script-helper.py | 312 | # ----------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Tests/SourceKitLSPTests/WorkspaceTests.swift | 1199 | // Essentially make sure that build settings never arrive, so we are forced to return fallback arguments. | STRING |
| MEDIUM | Sources/SwiftExtensions/Cache.swift | 13 | /// Essentially a dictionary where results are asynchronously computed on access. | COMMENT |
| MEDIUM | Sources/SemanticIndex/CheckedIndex.swift | 22 | /// Essentially a `DocumentManager` from the `SourceKitLSP` module. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Utilities/build-script-helper.py | 326 | parser.add_argument('--sanitize', action='append', help='build using the given sanitizer(s) (address|thread|unde | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Utilities/build-script-helper.py | 98 | CODE | |
| LOW | Sources/SKTestSupport/INPUTS/AbstractBuildServer.py | 72 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …tionScoringTestSupport/INPUTS/CommonFunctionTerms.json | 240 | { "word" : "placeholder", "count" : 20}, | CODE |