diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a80fce0..b9a8269 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -79,7 +79,7 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Run clippy - run: cargo clippy --no-deps -- -Dclippy::all -Wclippy::pedantic + run: cargo clippy --no-deps -- coverage: if: github.event_name == 'push' || github.event_name == 'schedule' || diff --git a/Cargo.toml b/Cargo.toml index c9bf81e..8ce30f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,10 @@ resolver = "2" edition = "2021" license = "MIT OR Apache-2.0" +[workspace.lints.clippy] +all = "deny" +pedantic = "warn" + [workspace.dependencies] anyhow = "1.0.92" askama = "0.12.1" diff --git a/flareon-cli/Cargo.toml b/flareon-cli/Cargo.toml index a68aab3..e0fc9f6 100644 --- a/flareon-cli/Cargo.toml +++ b/flareon-cli/Cargo.toml @@ -5,6 +5,9 @@ edition.workspace = true license.workspace = true description = "Modern web framework focused on speed and ease of use - CLI tool." +[lints] +workspace = true + [dependencies] anyhow.workspace = true cargo_toml.workspace = true diff --git a/flareon-codegen/Cargo.toml b/flareon-codegen/Cargo.toml index 917de09..84f0ca4 100644 --- a/flareon-codegen/Cargo.toml +++ b/flareon-codegen/Cargo.toml @@ -5,6 +5,9 @@ edition.workspace = true license.workspace = true description = "Modern web framework focused on speed and ease of use - code generation utils." +[lints] +workspace = true + [dependencies] convert_case.workspace = true darling.workspace = true diff --git a/flareon-macros/Cargo.toml b/flareon-macros/Cargo.toml index 8fc1b4f..73a38c4 100644 --- a/flareon-macros/Cargo.toml +++ b/flareon-macros/Cargo.toml @@ -12,6 +12,9 @@ proc-macro = true name = "tests" path = "tests/compile_tests.rs" +[lints] +workspace = true + [dependencies] darling.workspace = true flareon_codegen.workspace = true diff --git a/flareon/Cargo.toml b/flareon/Cargo.toml index 717e51a..de3301b 100644 --- a/flareon/Cargo.toml +++ b/flareon/Cargo.toml @@ -5,6 +5,9 @@ edition.workspace = true license.workspace = true description = "Modern web framework focused on speed and ease of use." +[lints] +workspace = true + [dependencies] askama.workspace = true askama_derive.workspace = true