Skip to content

Detects only public unused imports #1118

@rgoldberg

Description

@rgoldberg

Describe the bug

Periphery seems to detect only public unused imports, not at other visibilities.

Either periphery should detect all visibilities of unused imports, or visibility limitations should be documented.

Reproduction

Add an unused private import to a file, then run periphery.

Environment

$ periphery version
3.7.2
$ swift -version
swift-driver version: 1.148.6 Apple Swift version 6.3.1 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
Target: arm64-apple-macosx26.0
$ xcodebuild -version
Xcode 26.4.1
Build version 17E202

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions