-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(lints): Update ast-grep rules and update deny.toml
- Loading branch information
1 parent
ea77e6f
commit 2fdec58
Showing
5 changed files
with
51 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
id: no_println | ||
message: Do not use println! use `tracing::info`/`tracing::trace`/`tracing::debug` instead | ||
severity: warning | ||
language: Rust | ||
rule: | ||
all: | ||
- kind: macro_invocation | ||
- pattern: println!($$$ITEMS) | ||
fix: tracing::info!($$$ITEMS) | ||
ignores: | ||
- ./*build.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
id: no_unwrap | ||
message: Do not use unwrap | ||
description: Do not use unwrap | ||
severity: warning | ||
language: Rust | ||
rule: | ||
pattern: $ITEM.unwrap() | ||
exclude: ./*build.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters