woshiccm / Pecker

CodePecker is a tool to detect unused Swift code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False Positive - Extension Principle Class

Sherlouk opened this issue · comments

If you have an extension (such as a Notification Service Extension) then you end up with a class called NotificationService (this can be changed).

Apple knows to run this because of an entry in the Info.plist "NSExtensionPrincipalClass" which equals "$(PRODUCT_MODULE_NAME).NotificationService".

Pecker is raising a warning for this main class, but it is in fact being used.

commented

Will take a look at it

commented

Done, PR: #28