periphery icon indicating copy to clipboard operation
periphery copied to clipboard

A tool to identify unused code in Swift projects.

Results 132 periphery issues
Sort by recently updated
recently updated
newest added

Hi all, Is there a way with Periphery do detect and show type public properties which could be marked as private (using only inside type). Thanks.

enhancement

Hello, With the following code: ```swift class Foo { private let key = "the-key" func run() { var dictionary: [String: Any] = [:] dictionary[key] = 42 //

bug
apple bug

This is need so that we can identify individual unused @IB* declarations.

enhancement

> Original issue: https://github.com/peripheryapp/issues/issues/3 by [ateliercw](/ateliercw) Given a simplified example of: ``` import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.title = [String](title: "Title").first } } extension...

bug
apple bug

After first start of periphery we have a lot of code smells. So it may take a lot of time to fix it all. Could you please provide a "baseline"...

enhancement

Example code: ``` swift public struct Struct { public static let `default` = Self(foo: 123, bar: 456) public let foo: Int public let bar: Int private init(foo: Int, bar: Int)...

bug
apple bug

``` enum Foo { static let foo = "foo" } class Bar { func bar() -> [String: Int] { var s: [String: Int] = [:] s[Foo.foo] = 3 return s...

bug
apple bug

Environment: Xcode 14 RC DerivedData data path: /Users/username/Library/Developer/Xcode/DerivedData MacBook Pro M1 Max I didn't get the same issue on my old mac in case scanning the same project. Error: *...

STR: 1 create a new swiftui view ER - warning: Struct 'SwiftUIView' is unused AR - No unused code detected

We're incorrectly getting the following warning when building our project ``` Protocol 'Something' is declared public, but not used outside of [Framework Target] ``` ## Versions Periphery: 2.9.0 Xcode: 13.4.1...