-
-
Notifications
You must be signed in to change notification settings - Fork 4k
bevy_render: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
#17194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bevy_render: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
#17194
Conversation
…hout_reason)]` to bevy_render
#![expect( | ||
clippy::module_inception, | ||
reason = "The parent module contains all things viewport-related, while this module handles cameras as a component." | ||
)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue of the module sharing a name with its parent is out-of-scope for this PR; but I have created an issue on the matter: #17196
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue number should go in the reason comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, let me do that.
#[expect( | ||
clippy::match_same_arms, | ||
reason = "LoadedWithDependencies is marked as a TODO, so it's likely this will no longer lint soon." | ||
)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a fan of this reason... but I also didn't know what else to do, because merging the two arms would mean removing the // TODO
comment.
#[expect( | ||
clippy::match_same_arms, | ||
reason = "LoadedWithDependencies is marked as a TODO, so it's likely this will no longer lint soon." | ||
)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
…where the weird naming is being discussed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an improvement, although I agree with wanting to clean up a couple of those.
…ttributes_without_reason)]` (bevyengine#17194) # Objective - bevyengine#17111 ## Solution Set the `clippy::allow_attributes` and `clippy::allow_attributes_without_reason` lints to `deny`, and bring `bevy_render` in line with the new restrictions. ## Testing `cargo clippy` and `cargo test --package bevy_render` were run, and no errors were encountered.
Objective
clippy::allow_attributes
andclippy::allow_attributes_without_reason
lints #17111Solution
Set the
clippy::allow_attributes
andclippy::allow_attributes_without_reason
lints todeny
, and bringbevy_render
in line with the new restrictions.Testing
cargo clippy
andcargo test --package bevy_render
were run, and no errors were encountered.