peripheryapp / periphery

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

Don't remove imports that export unscanned targets #804

Open ileitch opened 1 month ago

ileitch commented 1 month 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?