Skip to content

ref(lints): Enforce missing_docs lint globally - #1321

Merged
szokeasaurusrex merged 1 commit into
szokeasaurusrex/shared-integration-test-logicfrom
szokeasaurusrex/centralize-missing_docs-warning
Sep 15, 2026
Merged

szokeasaurusrex merged 1 commit into
szokeasaurusrex/shared-integration-test-logicfrom
szokeasaurusrex/centralize-missing_docs-warning

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Enforce the missing_docs lint globally to require all public API items to be documented.

Until now, this lint has been individually enabled in the workspace crates. This change centralizes the lint enforcement in the workspace Cargo.toml.

Enabling in the workspace Cargo.toml also enables the lint for examples and integration tests, which is probably desireable. However, because we largely have not been documenting these so far, the lint triggered in many of these places. So, this change also adds #![expect] annotations to disable the lint on examples and tests that have existed before this lint was enabled.

@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review September 15, 2026 13:49
@szokeasaurusrex
szokeasaurusrex requested a review from a team as a code owner September 15, 2026 13:49
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/centralize-missing_docs-warning branch from 3f094ba to e71e205 Compare September 15, 2026 13:50
Comment thread sentry-actix/examples/basic.rs Resolved
Enforce the `missing_docs` lint globally to require all public API items to be documented.

Until now, this lint has been individually enabled in the workspace crates. This change centralizes the lint enforcement in the workspace `Cargo.toml`.

Enabling in the workspace `Cargo.toml` also enables the lint for examples and integration tests, which is probably desireable. However, because we largely have not been documenting these so far, the lint triggered in many of these places. So, this change also adds `#![expect]` annotations to disable the lint on examples and tests that have existed before this lint was enabled.
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/centralize-missing_docs-warning branch from e71e205 to 4ffdc9d Compare September 15, 2026 14:06
@szokeasaurusrex

Copy link
Copy Markdown
Member Author

Opening this to make our lint config consistent across crates; I noticed the #![warn(missing_docs)] had been added on #1315

@szokeasaurusrex
szokeasaurusrex merged commit 715a9ec into master Sep 15, 2026
31 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/centralize-missing_docs-warning branch September 15, 2026 15:37
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.

2 participants