woshiccm / Pecker

CodePecker is a tool to detect unused Swift code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: pecker:ignore support for for top-level extensions

noahsark769 opened this issue · comments

Currently it's possible to pecker:ignore classes/structs/enums, but not extensions. For example:

class IgnoreInExtensionExample {

}

// pecker:ignore
extension IgnoreInExtensionExample {
    func unused() {

    }
}

In this example, unused() is still reported as unused, even though the intention was to ignore it. This feature is nice to have because we have a bunch of extensions for base XCTestCase classes.

ah, sorry, this is what pecker:ignore all is for. Closing this.