Repository navigation
1.0.0.beta.10
Pre-release
Pre-release
Breaking
- None.
Enhancements
- Scans using a baseline now show baselined findings needed to remove a new finding.
--strictcounts only new findings. Use--always-exclude-baseline-resultsto hide those prerequisites. - Baseline updates now automatically prune stale entries that no longer match a scan result.
- Added
--write-metricswith Prometheus and OpenMetrics output for scanned LOC, reported findings, removable LOC, unused code ratio, and input baseline entries. Select the format with--metrics-format. - Concrete types referenced solely by constraints on unused protocol extension members are now reported as unused.
- Stored properties used by synthesized Codable, Equatable, or Hashable conformances are now retained by default.
- Improved the
agent-promptremoval guidance to warn about references a scan may not see, and included the scan configuration in the output so agents can judge which checks apply. - Added redundant open accessibility analysis for classes that can become
public. Disable with--disable-redundant-open-analysis. - Added suggestions to constrain protocols to
AnyObjectwhen all possible conforming types are known to be classes. Disable with--disable-class-only-protocol-analysis. - Expanded redundant public analysis to flag unnecessary
publicmodifiers on declarations inside non-public types, including declarations in extensions.
Bug Fixes
- Ignore comments that suppress a redundant protocol finding are no longer reported as superfluous.
- Fixed false unused results for enum cases used through static protocol requirements.
- Fixed false unused results for enum cases reached through a concrete enum’s synthesized
allCasesproperty or a synthesizedDecodableinitializer. - Fixed false unused and redundant
publicfindings for@dynamicCallablehandlers, and false unused findings for their required parameters. - Fixed scans missing unused and assign-only properties in
@Observableclasses. - Fixed
agent-promptremoval order to group redundant protocols with their conformances and extensions, before removing unused witnesses elsewhere. - Fixed false unused-parameter results when a universally unavailable function’s
@availableattribute includes a message or rename. - Fixed false unused results for Swift functions exported to C with
@_cdecland for their parameters. - Fixed false unused results for managed object classes referenced by a Core Data model’s
representedClassName. - Fixed false unused results for functions called from top-level statements in executables.
- Fixed false unused results for entry points declared with
@mainon an extension. - Fixed false unused results for wrapped parameters used through their projected value or backing storage, and for wrapper initializers called implicitly.
- Scans now stop and report the file path when a XIB, storyboard, Info.plist, Core Data model, or mapping model cannot be read.
- Fixed Xcode scans retaining code referenced only by synchronized-folder resources excluded from all targets.
- Fixed Info.plist discovery for Xcode projects whose
INFOPLIST_FILEuses build setting variables or an absolute path. - Fixed false unused results for result builder
buildBlockmethods with zero or multiple parameters. - Fixed parsing Core Data model and mapping files supplied by Bazel, preserving references to custom value transformers and migration policies.
- Fixed SwiftPM scans retaining code referenced only by undeclared resources in hidden directories.
- Fixed several cases where unused import analysis kept redundant imports.