Skip to content

Commit 19aac2d

Browse files
authored
chore: move clippy config to workspace (#68)
This makes it easier to run clippy just like it is ran in the CI.
1 parent b62f958 commit 19aac2d

File tree

6 files changed

+17
-1
lines changed

6 files changed

+17
-1
lines changed

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
uses: Swatinem/rust-cache@v2
8080

8181
- name: Run clippy
82-
run: cargo clippy --no-deps -- -Dclippy::all -Wclippy::pedantic
82+
run: cargo clippy --no-deps --
8383

8484
external-deps:
8585
if: github.event_name == 'push' || github.event_name == 'schedule' ||

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ resolver = "2"
1616
edition = "2021"
1717
license = "MIT OR Apache-2.0"
1818

19+
[workspace.lints.clippy]
20+
all = "deny"
21+
pedantic = "warn"
22+
1923
[workspace.dependencies]
2024
anyhow = "1.0.92"
2125
askama = "0.12.1"

flareon-cli/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition.workspace = true
55
license.workspace = true
66
description = "Modern web framework focused on speed and ease of use - CLI tool."
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
anyhow.workspace = true
1013
cargo_toml.workspace = true

flareon-codegen/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition.workspace = true
55
license.workspace = true
66
description = "Modern web framework focused on speed and ease of use - code generation utils."
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
convert_case.workspace = true
1013
darling.workspace = true

flareon-macros/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ proc-macro = true
1212
name = "tests"
1313
path = "tests/compile_tests.rs"
1414

15+
[lints]
16+
workspace = true
17+
1518
[dependencies]
1619
darling.workspace = true
1720
flareon_codegen.workspace = true

flareon/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition.workspace = true
55
license.workspace = true
66
description = "Modern web framework focused on speed and ease of use."
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
askama.workspace = true
1013
askama_derive.workspace = true

0 commit comments

Comments
 (0)