periphery
periphery copied to clipboard
A tool to identify unused code in Swift projects.
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.
Hello, With the following code: ```swift class Foo { private let key = "the-key" func run() { var dictionary: [String: Any] = [:] dictionary[key] = 42 //
This is need so that we can identify individual unused @IB* declarations.
> 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...
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"...
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)...
``` enum Foo { static let foo = "foo" } class Bar { func bar() -> [String: Int] { var s: [String: Int] = [:] s[Foo.foo] = 3 return s...
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...