{"schemaVersion":"2.0.0","locale":"en","title":"Configuration and inputs","description":"Choose the input contract for the command you are using. A SwiftPM package, a source-text directory, and an admitted immutable manifest are different inputs.","htmlUrl":"https://docs.swift-analyzer.com/reference/inputs/","markdownUrl":"https://docs.swift-analyzer.com/reference/inputs/index.md","productRevision":"524fa07e0ae4153c84ac12ae9eb6559df89ec2be","catalogRevision":"4558458d","docsRevision":"1f17ba58ab08627e0de898f1442067b09e960b48cd5605d6529e9275f8930d68","channel":"pre-prod","maturity":"experimental","access":"owner-provided-checkout","markdown":"# Configuration and inputs\n\nChoose the input contract for the command you are using. A SwiftPM package, a source-text directory, and an admitted immutable manifest are different inputs.\n\n| Workflow | Required input | Preparation |\n| --- | --- | --- |\n| source-scan | Package.swift directory, product name, explicit build authorization | Managed discovery and indexed build in the qualified profile |\n| experimental-scan | Swift source file or directory | Local parsing; no build or index |\n| doctor, stats, scan, why | Owner-supplied admitted immutable manifest bundle | Preserve the bundle's bound files, facts and build identity |\n\n## Source-scan configuration\n\n`--package-path` and `--product` select the product. `--allow-build` is required before package evaluation and compilation. `--include-stdio-rules` is false by default. `--format` defaults to human and can be json.\n\nThere is no source-scan YAML configuration, arbitrary rule switch, Index Store path switch or source export option in the documented command. Do not borrow flags from the manifest or preview workflows. [CLI reference](https://docs.swift-analyzer.com/reference/cli/) is extracted from this exact executable.\n\n## Immutable manifests\n\nManifest validation checks the bound snapshot, capabilities, profiles, completeness and integrity of its admitted facts. A path alone is not evidence. Use [the existing-snapshot guide](https://docs.swift-analyzer.com/guides/manifest/) when an owner has supplied a qualified bundle. Do not manually mark an open world as complete.\n\n## Build effects and data\n\nAnalysis is local. Authorized builds may evaluate package code and use the network for locked dependencies. Source-scan removes its owned temporary acquisition directory after the request. Reports can contain source identifiers and paths; handle them as project artifacts when sharing or retaining them.\n","anchors":["configuration-and-inputs","source-scan-configuration","immutable-manifests","build-effects-and-data"]}
