codecov / codecov-python

Python report uploader for Codecov
https://codecov.io
Apache License 2.0
185 stars 139 forks source link

Marking comments as uncovered #227

Closed rmjarvis closed 4 years ago

rmjarvis commented 4 years ago

Codecov has recently started marking some comment lines as being uncovered. Most commonly right at the start in my copyright notice.

Here is an example: https://codecov.io/gh/rmjarvis/TreeCorr/src/jk2/treecorr/binnedcorr3.py 9 of the first 12 lines (all of which are comments) are pink, and everything below that is either green or white. So the file is marked as having only 96% coverage, rather than 100%.

This seems to have started only in the last few months, and I don't think I changed any of my codecov or .coveragerc settings. But maybe there is something I need to do to one or both of these to tell it to ignore all comment lines? Or is it possibly a bug on your end (I humbly suggest...)?

Thanks for any help you can provide about this!

thomasrockhu commented 4 years ago

Hi @rmjarvis, this looks to be resolved. Let me know if I'm wrong here.

rmjarvis commented 4 years ago

Yes. Thanks, I haven't seen it in quite a while now.