Skip to content

Commit

Permalink
Add project lints
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Aug 15, 2024
1 parent 8a038b9 commit c903db5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ panic = "abort"
[package.metadata.release]
pre-release-hook = ["./release-hook.sh"]

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

[workspace.lints.clippy]
empty_loop = "forbid"
infinite_loop = "deny"
mem_forget = "deny"
dbg_macro = "warn"
todo = "warn"
# TODO: Remove after the following fix is released: https://github.com/rust-lang/rust-clippy/pull/13102
[lints.clippy]
needless_option_as_deref = "allow"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions rustlings-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ proc-macro = true
quote = "1.0.36"
serde.workspace = true
toml_edit.workspace = true

[lints]
workspace = true

0 comments on commit c903db5

Please sign in to comment.