diff --git a/crates/bevy_input/src/keyboard.rs b/crates/bevy_input/src/keyboard.rs index 6ce72ef801..0525847062 100644 --- a/crates/bevy_input/src/keyboard.rs +++ b/crates/bevy_input/src/keyboard.rs @@ -238,7 +238,10 @@ pub enum NativeKeyCode { all(feature = "serialize", feature = "bevy_reflect"), reflect(Serialize, Deserialize) )] -#[allow(clippy::doc_markdown)] // Clippy doesn't like our use of . +#[expect( + clippy::doc_markdown, + reason = "We use camel-case words inside `` tags to represent keyboard keys, which are not identifiers that we should be putting inside backticks." +)] #[repr(u32)] pub enum KeyCode { /// This variant is used when the key cannot be translated to any other variant. @@ -764,7 +767,10 @@ pub enum NativeKey { all(feature = "serialize", feature = "bevy_reflect"), reflect(Serialize, Deserialize) )] -#[allow(clippy::doc_markdown)] // Clippy doesn't like our use of . +#[expect( + clippy::doc_markdown, + reason = "We use camel-case words inside `` tags to represent keyboard keys, which are not identifiers that we should be putting inside backticks." +)] pub enum Key { /// A key string that corresponds to the character typed by the user, taking into account the /// user’s current locale setting, and any system-level keyboard mapping overrides that are in diff --git a/crates/bevy_input/src/lib.rs b/crates/bevy_input/src/lib.rs index 2da2c89cce..ffcef2e2cb 100644 --- a/crates/bevy_input/src/lib.rs +++ b/crates/bevy_input/src/lib.rs @@ -1,5 +1,10 @@ #![cfg_attr(docsrs, feature(doc_auto_cfg))] #![forbid(unsafe_code)] +#![deny( + clippy::allow_attributes, + clippy::allow_attributes_without_reason, + reason = "See #17111; To be removed once all crates are in-line with these attributes" +)] #![doc( html_logo_url = "https://bevyengine.org/assets/icon.png", html_favicon_url = "https://bevyengine.org/assets/icon.png"