Skip to content

feat(tools): add tool to check for unintentional duplicate documentation#5541

Draft
suzmue wants to merge 2 commits intogoogleapis:mainfrom
suzmue:doc-dup-checker
Draft

feat(tools): add tool to check for unintentional duplicate documentation#5541
suzmue wants to merge 2 commits intogoogleapis:mainfrom
suzmue:doc-dup-checker

Conversation

@suzmue
Copy link
Copy Markdown
Contributor

@suzmue suzmue commented Apr 24, 2026

This change introduces the doc-dup-checker tool in the tools directory. The tool analyzes Rustdoc JSON to find instances where both a re-export and its target have documentation, which rustdoc concatenates in the generated HTML.

The tool supports workspace-wide scanning of handwritten, published crates. It respects intentional paragraph breaks in re-export documentation as exceptions.

This does not yet add the tool to CI.

For #5481

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.75%. Comparing base (1dd0704) to head (301626d).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5541      +/-   ##
==========================================
- Coverage   97.75%   97.75%   -0.01%     
==========================================
  Files         218      218              
  Lines       49498    49498              
==========================================
- Hits        48389    48388       -1     
- Misses       1109     1110       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant