1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Files that live in the repo for reference / tooling but are not
# part of the tested `mdx-gen` crate. Without this, Codecov computes
# project coverage over every tracked source file, including the
# parked vendored crates under `crates/` (see `workspace.exclude` in
# `Cargo.toml`), which sinks the percentage to ~24% even though the
# shipping crate itself sits at >98%.
ignore:
- "crates/**" # Parked vendored crates — not in the workspace
- "fuzz/**" # Separate fuzz workspace, runs on nightly only
- "examples/**" # Demo binaries, not the library surface under test
- "benches/**" # Criterion harnesses, not library code
coverage:
status:
project:
default:
target: 90%
threshold: 5%
# First-time integration: Codecov has no baseline on `main`
# until this PR merges. Mark the check informational so it
# reports coverage without blocking the PR; tighten to
# `informational: false` after the first successful upload
# on the default branch.
informational: true
patch:
default:
target: 85%
threshold: 10%
informational: true
flags:
mdx-gen:
paths:
- src/
carryforward: true
component_management:
individual_components:
- component_id: mdx-gen
name: mdx-gen library
paths:
- src/**