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

dcdpr / jp / 26400468184
66%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 12:30PM UTC
Jobs 1
Files 380
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 May 2026 12:27PM UTC coverage: 65.791% (+0.5%) from 65.319%
26400468184

push

github

web-flow
chore(comfort): Add semantic line-break Rust/Markdown formatter (#663)

comfort` is a new contrib crate that reformats Rust doc comments (`///`
and `//!`) and Markdown files using semantic line breaks — one sentence
per line — with an optional `--max-width` safety net for long sentences.

The pipeline runs in three layers: `extract` finds doc-comment blocks
via `ra-ap-rustc_lexer`, `reflow_markdown` parses each block's body with
comrak and walks the AST to locate reflowable paragraphs, and
`reflow_paragraph` segments those paragraphs into sentences using a UAX
https://github.com/dcdpr/jp/pull/29 splitter with abbreviation-aware
merging.

Markdown structure (headings, code blocks, tables, block quotes, lists,
footnotes, hard line breaks) is preserved verbatim; only prose paragraph
contents are reflowed. Container blocks (block quotes, list items, task
items, alerts, footnote definitions) each contribute the correct
per-line continuation prefix so reflow output round-trips cleanly.

Two optional passes compose on top of the always-on sembr engine:

- `--format-markdown`: canonicalizes markdown structure via comrak's
  `format_commonmark` (normalizes list markers to `-`, prefers fenced
  code blocks, aligns table columns for visual display width including
  CJK wide characters) before reflowing.
- `--reference-links`: converts inline `[text](url)` links to
  reference-style `[text]` with definitions consolidated and sorted
  alphabetically at the bottom of each body.

Both transformations are idempotent individually and when composed.

The tool ships two binaries from the same entry point: `comfort` (direct
invocation, defaults to stdin/stdout) and `cargo-comfort` (cargo
subcommand, defaults to `--workspace`). Common flags: `--check`,
`--list-changed`, `--workspace`, `-p`/`--package`, `--exclude`,
`--language`, `--stdin-filename`, `--max-width`.

A new `fmt-comments-ci` justfile target runs `comfort --check
--workspace`in CI, added to the`ci` recipe alon... (continued)

1154 of 1422 new or added lines in 9 files covered. (81.15%)

31370 of 47681 relevant lines covered (65.79%)

245.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
122
0.0
crates/contrib/comfort/src/run.rs
61
93.36
crates/contrib/comfort/src/format.rs
50
28.57
crates/contrib/comfort/src/walk.rs
25
0.0
crates/contrib/comfort/src/lib.rs
3
0.0
crates/contrib/comfort/src/bin/cargo-comfort.rs
3
0.0
crates/contrib/comfort/src/bin/comfort.rs
3
98.15
crates/contrib/comfort/src/sentence.rs
1
99.09
crates/contrib/comfort/src/extract.rs
Jobs
ID Job ID Ran Files Coverage
1 26400468184.1 25 May 2026 12:30PM UTC 380
65.79
GitHub Action Run
Source Files on build 26400468184
  • Tree
  • List 380
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26400468184
  • 3ff5a413 on github
  • Prev Build on main (#26241895253)
  • Next Build on main (#26401591354)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc