lkdjiin / coco

Code coverage for ruby 2.x
http://lkdjiin.github.com/coco/
MIT License
70 stars 10 forks source link

exclusion not working correctly with hidden dirs? #56

Open TiteiKo opened 8 years ago

TiteiKo commented 8 years ago

It might be a configuration problem, or a problem with hidden dirs...

In my CI, the gems are installed in a .gems directory at the root of the project. I can't seem to be able to exclude that directory...

For example, I get the following:

6% /builds/golf/site/.gems/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/core_ext/thread.rb

I tried adding .gems and builds/golf/site/.gems to the exclusions, without success...

Any idea would be welcomed!

lkdjiin commented 8 years ago

Because I never thought about this edge case it's quite possible that exclusion doesn't work with hidden dirs :grimacing:

I will set up a new test and I will let you know…

TiteiKo commented 8 years ago

Workaround:

:exclude:
- '.gems'
lkdjiin commented 8 years ago

So it works? ¯(ツ)

TiteiKo commented 8 years ago

It does, but I think this deserves a note in the docs, as it has to be between quotes