SlatherOrg / slather

Generate test coverage reports for Xcode projects & hook it into CI.
MIT License
1.55k stars 235 forks source link

Contains the source of the libraries managed by SwiftPM #475

Closed uhooi closed 3 years ago

uhooi commented 3 years ago

Overview

Contains the source of the libraries managed by Swift Package Manager(SwiftPM). Is there any way to ignore it?

Environments

Screenshots

Firebase sources are included.

スクリーンショット 2021-02-12 23 20 32
uhooi commented 3 years ago

I should just ignore the SourcePackages folder. I'll find a way to ignore it.

スクリーンショット_2021-02-13_9_49_31
msaps commented 3 years ago

@uhooi I resolved this by ignoring the offending SPM directories in my .slather.yml suggested in #445 - specifically this.

uhooi commented 3 years ago

This issue is a duplicate of #445, so it is closed.

uhooi commented 3 years ago

@msaps Thank you very much :) I ignored the ../../../../../Library/Developer/Xcode/DerivedData/* and it was OK. https://github.com/uhooi/UhooiPicBook/commit/5f2038a6bc24e813a33a5841bf53dd15f2283910

Example of a library path managed by SwiftPM:

../../../../../Library/Developer/Xcode/DerivedData/UhooiPicBook-xxxxxxxxxxxxxxxxxxxxxxxxxxxx/SourcePackages/checkouts/firebase-ios-sdk/FirebaseAppDistribution/Sources/FIRAppDistribution.m
uhooi commented 3 years ago

CI fails for relative paths. I fixed it as follows. https://github.com/uhooi/UhooiPicBook/commit/a14031e09331b65f703a59a56fffb45191bd29e6