peripheryapp / periphery

A tool to identify unused code in Swift projects.
MIT License
5.28k stars 193 forks source link

Don't remove imports that export unscanned targets #804

Open ileitch opened 3 months ago

ileitch commented 3 months ago

It's not safe to remove an import for a module that exports (possibly transitively) any unscanned module, as the symbols from the unscanned module may be referenced.

Display warning when this scenario is detected?