From 3689a637e32ae63ce37b0e125059dd632d48fe0e Mon Sep 17 00:00:00 2001 From: Josh Simmons Date: Fri, 29 Nov 2024 22:40:30 +0100 Subject: [PATCH] meta: Set clippy allow list globally Finally we can disable the pointless too many arguments lint... --- Cargo.toml | 6 ++++++ engine/narcissus-app/Cargo.toml | 3 +++ engine/narcissus-core/Cargo.toml | 3 +++ engine/narcissus-font/Cargo.toml | 3 +++ engine/narcissus-gpu/Cargo.toml | 3 +++ engine/narcissus-image/Cargo.toml | 3 +++ engine/narcissus-maths/Cargo.toml | 3 +++ engine/narcissus-sqlite/Cargo.toml | 3 +++ engine/narcissus-world/Cargo.toml | 3 +++ external/blake3-smol/Cargo.toml | 3 +++ external/renderdoc-sys/Cargo.toml | 3 +++ external/sqlite-sys/Cargo.toml | 3 +++ external/stb_image-sys/Cargo.toml | 3 +++ external/stb_truetype-sys/Cargo.toml | 3 +++ external/vulkan-sys/Cargo.toml | 3 +++ title/shark-shaders/Cargo.toml | 3 +++ title/shark/Cargo.toml | 3 +++ 17 files changed, 54 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index fabaec9..ce832cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,3 +30,9 @@ lto="thin" [profile.dev] panic = "abort" opt-level = 0 + +# Disable some pointless lints globally + +[workspace.lints.clippy] +too_many_arguments = "allow" +len_without_is_empty = "allow" diff --git a/engine/narcissus-app/Cargo.toml b/engine/narcissus-app/Cargo.toml index edfc212..089191d 100644 --- a/engine/narcissus-app/Cargo.toml +++ b/engine/narcissus-app/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] narcissus-core = { path = "../narcissus-core" } sdl3-sys = "0.1.2" \ No newline at end of file diff --git a/engine/narcissus-core/Cargo.toml b/engine/narcissus-core/Cargo.toml index aa99e00..2713a39 100644 --- a/engine/narcissus-core/Cargo.toml +++ b/engine/narcissus-core/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] fast-float2 = "0.2.3" memchr = { version = "2" } \ No newline at end of file diff --git a/engine/narcissus-font/Cargo.toml b/engine/narcissus-font/Cargo.toml index 62f927e..0c868de 100644 --- a/engine/narcissus-font/Cargo.toml +++ b/engine/narcissus-font/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] stb_truetype-sys = { path = "../../external/stb_truetype-sys" } narcissus-core = { path = "../narcissus-core" } diff --git a/engine/narcissus-gpu/Cargo.toml b/engine/narcissus-gpu/Cargo.toml index 9c82c69..5f9bdd7 100644 --- a/engine/narcissus-gpu/Cargo.toml +++ b/engine/narcissus-gpu/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [features] default = ["debug_markers"] debug_markers = [] diff --git a/engine/narcissus-image/Cargo.toml b/engine/narcissus-image/Cargo.toml index aa9ce29..26e4c8b 100644 --- a/engine/narcissus-image/Cargo.toml +++ b/engine/narcissus-image/Cargo.toml @@ -5,5 +5,8 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] stb_image-sys = { path = "../../external/stb_image-sys" } \ No newline at end of file diff --git a/engine/narcissus-maths/Cargo.toml b/engine/narcissus-maths/Cargo.toml index 184ca37..6573c45 100644 --- a/engine/narcissus-maths/Cargo.toml +++ b/engine/narcissus-maths/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [features] [dependencies] diff --git a/engine/narcissus-sqlite/Cargo.toml b/engine/narcissus-sqlite/Cargo.toml index 2f6186f..7d0b931 100644 --- a/engine/narcissus-sqlite/Cargo.toml +++ b/engine/narcissus-sqlite/Cargo.toml @@ -5,5 +5,8 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] sqlite-sys = { path = "../../external/sqlite-sys" } \ No newline at end of file diff --git a/engine/narcissus-world/Cargo.toml b/engine/narcissus-world/Cargo.toml index 14eff5d..54a5860 100644 --- a/engine/narcissus-world/Cargo.toml +++ b/engine/narcissus-world/Cargo.toml @@ -5,5 +5,8 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] narcissus-core = { path = "../narcissus-core" } \ No newline at end of file diff --git a/external/blake3-smol/Cargo.toml b/external/blake3-smol/Cargo.toml index 3f5c5ec..df38999 100644 --- a/external/blake3-smol/Cargo.toml +++ b/external/blake3-smol/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [features] std = [] no_avx512 = [] diff --git a/external/renderdoc-sys/Cargo.toml b/external/renderdoc-sys/Cargo.toml index be925c7..2fa16c6 100644 --- a/external/renderdoc-sys/Cargo.toml +++ b/external/renderdoc-sys/Cargo.toml @@ -5,4 +5,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] \ No newline at end of file diff --git a/external/sqlite-sys/Cargo.toml b/external/sqlite-sys/Cargo.toml index 8465957..6de3e39 100644 --- a/external/sqlite-sys/Cargo.toml +++ b/external/sqlite-sys/Cargo.toml @@ -5,4 +5,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] diff --git a/external/stb_image-sys/Cargo.toml b/external/stb_image-sys/Cargo.toml index 94d2889..a808a1a 100644 --- a/external/stb_image-sys/Cargo.toml +++ b/external/stb_image-sys/Cargo.toml @@ -5,4 +5,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] \ No newline at end of file diff --git a/external/stb_truetype-sys/Cargo.toml b/external/stb_truetype-sys/Cargo.toml index 413c19c..ea07747 100644 --- a/external/stb_truetype-sys/Cargo.toml +++ b/external/stb_truetype-sys/Cargo.toml @@ -5,4 +5,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] \ No newline at end of file diff --git a/external/vulkan-sys/Cargo.toml b/external/vulkan-sys/Cargo.toml index 5bbf4d3..d6f3f1a 100644 --- a/external/vulkan-sys/Cargo.toml +++ b/external/vulkan-sys/Cargo.toml @@ -5,4 +5,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] \ No newline at end of file diff --git a/title/shark-shaders/Cargo.toml b/title/shark-shaders/Cargo.toml index 6f57c70..a5702d5 100644 --- a/title/shark-shaders/Cargo.toml +++ b/title/shark-shaders/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] narcissus-core = { path = "../../engine/narcissus-core" } narcissus-font = { path = "../../engine/narcissus-font" } diff --git a/title/shark/Cargo.toml b/title/shark/Cargo.toml index 635da7d..f456765 100644 --- a/title/shark/Cargo.toml +++ b/title/shark/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] renderdoc-sys = { path = "../../external/renderdoc-sys" } -- 2.49.0