From 6399df88a72afbe7a08f15e2293fbd73245446a7 Mon Sep 17 00:00:00 2001 From: Milo Moisson Date: Thu, 9 May 2024 13:33:03 +0200 Subject: [PATCH] ci: correctly order lints --- Cargo.toml | 13 +++++++++++++ LICENCE.md | 24 ------------------------ src/main.rs | 10 ---------- 3 files changed, 13 insertions(+), 34 deletions(-) delete mode 100644 LICENCE.md diff --git a/Cargo.toml b/Cargo.toml index 82201cc..4386312 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,3 +19,16 @@ git2 = "0.17.2" indicatif = "0.17.5" label-logger = { version = "0.2.0", features = ["indicatif"] } num_cpus = "1.15.0" + +[lints] +[lints.rust] +unsafe_code = "deny" +[lints.clippy] +pedantic = { level = "warn", priority = -1 } +nursery = { level = "warn", priority = -1 } +# cargo = { level = "warn", priority = -1 } + +expect_used = "warn" +missing_docs_in_private_items = "warn" +print_literal = "warn" +unwrap_used = "warn" diff --git a/LICENCE.md b/LICENCE.md deleted file mode 100644 index 63cf057..0000000 --- a/LICENCE.md +++ /dev/null @@ -1,24 +0,0 @@ -## The MIT License (MIT) - -Copyright © `2023` `Milo Moisson` - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the “Software”), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/src/main.rs b/src/main.rs index 91b216e..9284831 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,13 +1,3 @@ -#![deny(unsafe_code)] -#![warn( - clippy::missing_docs_in_private_items, - clippy::print_literal, - clippy::unwrap_used, - clippy::expect_used, - clippy::nursery, - clippy::pedantic, - clippy::cargo -)] #![doc( html_logo_url = "https://raw.githubusercontent.com/MrNossiom/git-leave/main/assets/logo.png" )]