{"schemaVersion":"2.0.0","locale":"en","title":"Experimental source preview","description":"Preview limited local Swift source patterns without a build or Index Store. This workflow produces review candidates; it does not provide compiler-backed source-scan coverage.","htmlUrl":"https://docs.swift-analyzer.com/guides/experimental/","markdownUrl":"https://docs.swift-analyzer.com/guides/experimental/index.md","productRevision":"524fa07e0ae4153c84ac12ae9eb6559df89ec2be","catalogRevision":"4558458d","docsRevision":"1f17ba58ab08627e0de898f1442067b09e960b48cd5605d6529e9275f8930d68","channel":"pre-prod","maturity":"experimental","access":"owner-provided-checkout","markdown":"# Experimental source preview\n\nPreview limited local Swift source patterns without a build or Index Store. This workflow produces review candidates; it does not provide compiler-backed source-scan coverage.\n\n## Inspect the available patterns\n\n```sh\n\"$ANALYZER\" experimental-scan --list-rules\n```\n\nThe documented executable lists 13 preview rules. Use the listed string ID with `--rule`; a catalog condition ID such as `V-PERF-04` is not the CLI selector. [CLI reference](https://docs.swift-analyzer.com/reference/cli/#experimental-scan) includes the exact help.\n\n## Scan source text\n\nReplace `/path/to/source` with a Swift file or directory:\n\n```sh\n\"$ANALYZER\" experimental-scan /path/to/source \\\n  --rule performance.array-fifo-shifts --format json\n```\n\nRepeat `--rule` to select more patterns. With no rule filter, the registered preview rules are selected. Review each candidate's assumptions, file issues, report limitations and status. It does not build or execute the analyzed code.\n\n## Interpret the boundary\n\nA source-text pattern can miss effects hidden by calls, aliases, generated code, dynamic behavior or build conditions. A candidate is a reason to inspect the code. No candidate does not prove absence of a semantic defect. Its `complete` status describes this preview operation, not whole-program completeness or source-scan support.\n","anchors":["experimental-source-preview","inspect-the-available-patterns","scan-source-text","interpret-the-boundary"]}
