Path Regexp
Outlining our regular expression technique used
The Codecov Yaml accepts regexp patterns to filter report content. Detailed below is the strategy of how codecov processes these paths.
Regexp patterns
Status Checks and Flags do not support Regex rules
At this time, the Codecov Flags and Status Checks features do not accept regex-based paths
Before | After |
---|---|
/path | include ^path.* |
path/ | include ^path/.* |
path/* | include ^path/.* |
path/to/file.rb$ | include ^path/to/file.rb$ |
*/tests | include .*/tests.* |
!path | exclude ^path.* |
Logic
if any negative match:
skip
else if has positive matches:
if positive match found:
include
else:
skip
else:
include
Updated almost 3 years ago