peripheryapp / periphery

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

I think I found a false positive. #727

Closed scott-lydon closed 2 months ago

scott-lydon commented 3 months ago

If you create an initializer for arrays

extension Array where Element == Int { 

    init(myNewInit: String) { 
        self = [1]
    }
}

let test = [Int](myNewInit: "This isn't picked up")

Apart from that, thank you for all your great work!

ileitch commented 2 months ago

Unfortunately, this is a known issue caused by a bug in the Swift compiler: https://github.com/peripheryapp/periphery/issues/1