Experimental source preview
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.
Inspect the available patterns#
"$ANALYZER" experimental-scan --list-rulesThe 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 includes the exact help.
Scan source text#
Replace /path/to/source with a Swift file or directory:
"$ANALYZER" experimental-scan /path/to/source \
--rule performance.array-fifo-shifts --format jsonRepeat --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.
Interpret the boundary#
A 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.