Periphery Versions Save

A tool to identify unused code in Swift projects.

2.5.2

2 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Fix erroneous results for explicit 'getter' accessors.

2.5.1

2 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Fix an issue where scans with many schemes could breaking loading of the index store.

2.5.0

3 years ago
Breaking
  • None.
Enhancements
  • Add redundant public accessibility analysis.
  • Add arm64 support.
  • Add --retain-assign-only-property-types option to retain assign-only properties based on their type.
  • Declarations in an entry point file (e.g main.swift) are no longer blindly retained, even if unused.
  • Additional arguments passed to xcodebuild can now override the default set of environment based arguments.
Bug Fixes
  • Fix issue where protocol property references could be incorrectly associated with the getter/setter rather than the property itself, leading to erroneous results.
  • Fix unused parameter false positive result for identical function signatures at the same location in different files.

2.4.3

3 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Retain constructors of generic structs that cannot be identified as used due to Swift bug SR-7093.

2.4.2

3 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • In Swift 5.3 and lower, all optional protocol members are now retained in order to workaround a Swift bug. This bug is resolved in Swift 5.4.
  • Cases of public enums are now also retained when using --retain-public.
  • Open method parameters are now also retained when using --retain-public.
  • Empty public protocols that have an implementation in extensions are no longer identified as redundant.
  • Foreign protocol method parameters are no longer identified as unused.

2.4.1

3 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Fix ignore comments on protocol declarations.

2.4.0

3 years ago
Breaking
  • The --xcargs option has been removed, and superseded by passing arguments following the -- terminator. E.g periphery scan --xcargs --foo is now periphery scan -- --foo. This feature can also be used to pass arguments to swift build for SwiftPM projects.
Enhancements
  • None.
Bug Fixes
  • None.

2.3.3

3 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Improve unused parameter location identification.

2.3.2

3 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Fix indexing failure on unhandled declaration kinds, such as 'commentTag'.
  • --retain-objc-accessible also retains private declarations explicitly attributed with @objc.

2.3.1

3 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Fix crash during indexing phase.