- Use explict ./ for consistency when invoking the script
- Rename script to "prune-cover.sh"
- Build ignore pattern in temporary file, and use grep -f to read it
- Use grep -F for correctness (path can contain dots)
- Add comment in .codecov.yml
Test helpers will necessarily contain some lines that are only executed on test
failure, so exluding them from test coverage is still a good idea.
Also exclude pkg/web.