Skip to content

Conversation

@LikeLakers2
Copy link
Contributor

Objective

Solution

Set the clippy::allow_attributes and clippy::allow_attributes_without_reason lints to deny, and bring bevy_pbr in line with the new restrictions.

Testing

cargo clippy --tests --package bevy_pbr was run, and no errors were encountered.

#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![deny(unsafe_code)]
#![forbid(unsafe_code)]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I searched through bevy_pbr, and found no unsafe code - so I figured this was meant to be a forbid.

Copy link
Contributor

@ickshonpe ickshonpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how all those unused_variable lints survived for so long, shows why this is a good change.

@BenjaminBrienen BenjaminBrienen added C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it D-Trivial Nice and easy! A great choice to get started with Bevy A-Rendering Drawing game state to the screen labels Jan 10, 2025
…r-loops easier to understand than `core::array::from_fn`
@LikeLakers2 LikeLakers2 force-pushed the lint/deny_allow_and_without_reason/bevy_pbr branch from 1a90a60 to 53c979d Compare January 10, 2025 18:44
… find for-loops easier to understand than `core::array::from_fn`"

This reverts commit 53c979d.
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 10, 2025
Merged via the queue into bevyengine:main with commit df38d1a Jan 10, 2025
28 checks passed
@LikeLakers2 LikeLakers2 deleted the lint/deny_allow_and_without_reason/bevy_pbr branch January 10, 2025 20:24
mrchantey pushed a commit to mrchantey/bevy that referenced this pull request Feb 4, 2025
…ibutes_without_reason)]` (bevyengine#17277)

# Objective
- bevyengine#17111

## Solution
Set the `clippy::allow_attributes` and
`clippy::allow_attributes_without_reason` lints to `deny`, and bring
`bevy_pbr` in line with the new restrictions.

## Testing
`cargo clippy --tests --package bevy_pbr` was run, and no errors were
encountered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants