woshiccm / Pecker

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

XCTestCase tests are not ignored #55

Open massimobio opened 4 years ago

massimobio commented 4 years ago

Installed Pecker 0.3.0 with Homebrew and running Pecker as a Run Script Phase in Xcode. Running with Pecker's defaults and without a yaml file, all my tests show an unused warning. I tried to add this yaml file:

excluded: # paths to ignore during detecting. Takes precedence over `included`.
- Pods

blacklist_superclass: # all the class inherit from class specified in the list will ignore
- XCTestCase

This succeeded in removing the Cocoapods warnings but I still see all my tests.

My project is part of an Xcode workspace. It has a few targets (iOS, iOS Tests, Mac, Mac Tests)