Skip to content

Commit 5798265

Browse files
committed
Add to lint staged and readme
1 parent 3c70631 commit 5798265

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ versions. Here are the cli tools we use:
127127
- Nightly [cargo fmt](https://github.com/rust-lang/rustfmt) and
128128
[cargo udeps](https://github.com/est31/cargo-udeps)
129129
- [rust clippy](https://github.com/rust-lang/rust-clippy)
130+
- [cargo dylint](https://github.com/trailofbits/dylint)
130131
- [cargo sort](https://github.com/DevinR528/cargo-sort)
131132
- [prettier](https://github.com/prettier/prettier)
132133

@@ -140,6 +141,7 @@ export RUSTFLAGS="-D warnings"
140141
cargo +nightly fmt --check
141142
cargo +nightly udeps --workspace --all-features
142143
cargo clippy --all-features --all-targets
144+
cargo dylint --all
143145
cargo sort --workspace --check
144146
npm run lint
145147
```

lint-staged.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
export default {
22
"*": "prettier --cache --ignore-unknown --write",
3-
"*.rs": (stagedFiles) => ["cargo +nightly fmt", "cargo clippy --all-features --all-targets"],
3+
"*.rs": (stagedFiles) => [
4+
"cargo +nightly fmt",
5+
"cargo clippy --all-features --all-targets",
6+
"cargo dylint --all",
7+
],
48
"Cargo.toml": (stagedFiles) => [
59
"cargo +nightly fmt",
610
"cargo +nightly udeps --workspace --all-features",

0 commit comments

Comments
 (0)