diff --git a/Cargo.toml b/Cargo.toml index 8a1ac396..c478073e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,3 +73,9 @@ anyhow = "1.0" [package.metadata.bin] # Conventional commits githook cc-cli = { version = "0.1" } + +[lints.clippy] +nursery = "warn" +# pedantic = "warn" +unwrap_used = "warn" +expect_used = "warn" diff --git a/bacon.toml b/bacon.toml index 43026940..63dafe80 100644 --- a/bacon.toml +++ b/bacon.toml @@ -24,7 +24,15 @@ command = ["cargo", "check", "--all-targets", "--color", "always"] need_stdout = false [jobs.clippy] -command = ["cargo", "clippy", "--all-targets", "--color", "always", "--", "-Dwarnings", "-Wclippy::nursery", "-Wclippy::unwrap_used", "-Wclippy::expect_used"] +command = [ + "cargo", + "clippy", + "--all-targets", + "--color", + "always", + "--", + "-Dwarnings", +] # "-Wclippy::pedantic", need_stdout = false diff --git a/justfile b/justfile index b5733ba4..3d38cee3 100644 --- a/justfile +++ b/justfile @@ -5,7 +5,7 @@ install-hooks: validate-dev-branch: git rebase -i origin/main -x 'cargo build' git rebase -i origin/main -x 'cargo test' - git rebase -i origin/main -x 'cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used' + git rebase -i origin/main -x 'cargo clippy -- -D warnings' start-ngrok: #!/usr/bin/env bash