Skip to content

Conversation

@CuteChuanChuan
Copy link
Contributor

@CuteChuanChuan CuteChuanChuan commented Nov 8, 2025

Which issue does this PR close?

Closes #16915.

Rationale for this change

This PR adds CI enforcement to ensure all code examples in documentation comments are properly formatted to maintain consistent code formatting, including examples in doc comments.

What changes are included in this PR?

This PR adds a new CI check in the check-fmt job that:

  1. Installs the nightly Rust toolchain
  2. Runs cargo +nightly fmt --all -- --check --config format_code_in_doc_comments=true

Note: format_code_in_doc_comments is currently an unstable feature.

Are these changes tested?

The command is tested locally with:

Are there any user-facing changes?

No user-facing changes.

@github-actions github-actions bot added the development-process Related to development process of DataFusion label Nov 8, 2025
@CuteChuanChuan CuteChuanChuan marked this pull request as draft November 8, 2025 05:36
@CuteChuanChuan CuteChuanChuan changed the title ci: add check for doc comment formatting [WIP] ci: add check for doc comment formatting Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Related to development process of DataFusion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chore: format documentation examples

1 participant