Skip to content

1.0.0.beta.10

Pre-release
Pre-release

Choose a tag to compare

@ileitch ileitch released this 05 Nov 19:26
6e05295
Breaking
  • None.
Enhancements
  • Scans using a baseline now show baselined findings needed to remove a new finding. --strict counts only new findings. Use --always-exclude-baseline-results to hide those prerequisites.
  • Baseline updates now automatically prune stale entries that no longer match a scan result.
  • Added --write-metrics with 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-prompt removal 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 AnyObject when all possible conforming types are known to be classes. Disable with --disable-class-only-protocol-analysis.
  • Expanded redundant public analysis to flag unnecessary public modifiers 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 allCases property or a synthesized Decodable initializer.
  • Fixed false unused and redundant public findings for @dynamicCallable handlers, and false unused findings for their required parameters.
  • Fixed scans missing unused and assign-only properties in @Observable classes.
  • Fixed agent-prompt removal 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 @available attribute includes a message or rename.
  • Fixed false unused results for Swift functions exported to C with @_cdecl and 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 @main on 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_FILE uses build setting variables or an absolute path.
  • Fixed false unused results for result builder buildBlock methods 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.