woshiccm / Pecker

CodePecker is a tool to detect unused Swift code.
MIT License
1.46k stars 63 forks source link

@IBAction false positive #7

Closed Sherlouk closed 4 years ago

Sherlouk commented 4 years ago

@IBAction func someFunction() { currently returns a warning, but it is used/called by our UIStoryboard!

woshiccm commented 4 years ago

Pecker support Storyboard and xib are not enough, will find a solution as soon as possible, thank you for your feedback

Sherlouk commented 4 years ago

I think this is more that anything that is ObjC marked code ([at]IBAction, [at]ObjC etc) should just be ignored as it's almost impossible to reliably check if it's called.

woshiccm commented 4 years ago

Yep, I will try my best to find a solution. If still can’t solve it, can only solve it this way.

woshiccm commented 4 years ago

fixed