Skip to content

Commit

Permalink
test(lints): add workspace lints
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce D'Arcus <[email protected]>
  • Loading branch information
bdarcus committed Jan 23, 2024
1 parent e5a4a8a commit 3446bcc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,17 @@ members = [
"csln",
"processor",
]

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

[workspace.lints.clippy]
# not sure on what to turn on and off
complexity = "allow"
expect_used = "warn"
large_enum_variant = "allow"
needless_borrow = "warn"
needless_question_mark = "warn"
needless_return = "warn"
style = "allow"
unwrap_used = "warn"
3 changes: 3 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ serde_json = "1.0"
csln = { path = "../csln", package = "csln" }
processor = { path = "../processor", package = "csln-processor" }

[lints]
workspace = true

3 changes: 3 additions & 0 deletions csln/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ rayon = "1.7.0"
#icu_testdata = { version = "1.2.0", features = ["icu_datetime_experimental"] }
#indexmap = { version = "2.0.0", features = ["std"] }

[lints]
workspace = true

3 changes: 3 additions & 0 deletions processor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ criterion = { version = "0.5.1", features = ["html_reports"] }
[[bench]]
name = "proc_bench"
harness = false

[lints]
workspace = true

0 comments on commit 3446bcc

Please sign in to comment.