• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 28168709525
69%

Build:
DEFAULT BRANCH: main
Ran 25 Jun 2026 12:05PM UTC
Jobs 1
Files 420
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jun 2026 12:03PM UTC coverage: 66.969% (+0.06%) from 66.906%
28168709525

push

github

web-flow
feat(comfort): Add `--prune-reference-links` flag (#796)

Running `comfort --prune-reference-links` removes any reference-link
definition (`[label]: url`) that no link or image in the document points
at. Referenced definitions — shortcut `[label]`, collapsed `[label][]`,
full `[text][label]`, and image `![alt][label]` forms — are kept; every
other byte of the document is untouched. Footnote definitions
(`[^name]:`) are never touched. The flag is independent of
`--reference-links`; both flags can be combined.

The implementation also fixes a latent bug in `--reference-links`: a
reference definition whose URL or title wrapped onto a following line
was not extracted correctly. The old line-by-line scan took only the
`[label]:` line and left the continuation line stranded in the body. The
new `collect_reference_definition_spans` helper groups consecutive lines
into a single span before parsing, so multi-line definitions are
recognised and handled as a unit. The `protect_reference_form_links`
helper was updated to use the same span logic.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

164 of 177 new or added lines in 4 files covered. (92.66%)

2 existing lines in 1 file now uncovered.

36462 of 54446 relevant lines covered (66.97%)

422.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
93.35
-0.36% crates/contrib/comfort/src/format.rs
1
0.0
0.0% crates/contrib/comfort/src/run.rs

Coverage Regressions

Lines Coverage ∆ File
2
93.35
-0.36% crates/contrib/comfort/src/format.rs
Jobs
ID Job ID Ran Files Coverage
1 28168709525.1 25 Jun 2026 12:05PM UTC 420
66.97
GitHub Action Run
Source Files on build 28168709525
  • Tree
  • List 420
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28168709525
  • 53d78f3b on github
  • Prev Build on main (#28166211544)
  • Next Build on main (#28170221208)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc