Skip to content

Conversation

james7132
Copy link
Member

Objective

Begin addressing #12660.

Solution

Follow the example of the existing efforts to enable deny(missing_docs) and deny(unsafe_code):

  • Set clippy::unwrap_used to warn workspace wide.
  • Set allow-unwrap-in-tests to true in Clippy.toml.
  • Add expect annotations for every non-trivial crate in the workspace
  • Directly address a few crates with only a few cases.

Testing

Ran clippy locally.

@james7132 james7132 added C-Code-Quality A section of code that is hard to understand or change A-Cross-Cutting Impacts the entire engine D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 7, 2025
@alice-i-cecile
Copy link
Member

Very happy with the approach and core idea here. Ping me when CI is green for a review?

@alice-i-cecile alice-i-cecile added S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 7, 2025
@james7132 james7132 added the M-Needs-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide label Sep 8, 2025
Copy link
Contributor

github-actions bot commented Sep 8, 2025

It looks like your PR is a breaking change, but you didn't provide a migration guide.

Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Cross-Cutting Impacts the entire engine C-Code-Quality A section of code that is hard to understand or change D-Straightforward Simple bug fixes and API improvements, docs, test and examples M-Needs-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants