Skip to content

Commit

Permalink
feat: enable custom lint rules for workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDecMeetsMore committed Jul 25, 2024
1 parent 6d1bf21 commit 3bbd376
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 1 deletion.
14 changes: 14 additions & 0 deletions scheduler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,17 @@ chrono-tz = "0.5.3"

[dev-dependencies]
nettu_scheduler_sdk = { path = "./clients/rust" }


[workspace.lints.rust]
unsafe_code = "forbid"

[lints.clippy]
unsafe_ops_in_unsafe_fn = "forbid"
print_stdout = "forbid"
print_err = "forbid"

[workspace.lints.clippy]
unsafe_ops_in_unsafe_fn = "forbid"
print_stdout = "forbid"
print_err = "forbid"
3 changes: 3 additions & 0 deletions scheduler/clients/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ license = "MIT"
authors = ["Fredrik Meringdal"]
edition = "2018"

[lints]
workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
3 changes: 3 additions & 0 deletions scheduler/crates/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Fredrik Meringdal"]
edition = "2018"

[lints]
workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
5 changes: 4 additions & 1 deletion scheduler/crates/api_structs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ license = "MIT"
authors = ["Fredrik Meringdal"]
edition = "2018"

[lints]
workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = { version = "1.0", features = ["derive"] }
nettu_scheduler_domain = { path = "../domain", version = "0.2.1" }
nettu_scheduler_domain = { path = "../domain", version = "0.2.1" }
3 changes: 3 additions & 0 deletions scheduler/crates/domain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ license = "MIT"
authors = ["Fredrik Meringdal"]
edition = "2018"

[lints]
workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
3 changes: 3 additions & 0 deletions scheduler/crates/infra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Fredrik Meringdal"]
edition = "2018"

[lints]
workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
3 changes: 3 additions & 0 deletions scheduler/crates/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ version = "0.1.0"
authors = ["Fredrik Meringdal"]
edition = "2018"

[lints]
workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down

0 comments on commit 3bbd376

Please sign in to comment.