Skip to content

Commit

Permalink
tools: Add clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
XuShaohua committed Apr 21, 2024
1 parent 6c17e78 commit bec0fdb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions tools/clippy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# Copyright (c) 2024 Xu Shaohua <[email protected]>. All rights reserved.
# Use of this source is governed by General Public License that can be found
# in the LICENSE file.

set -xe

cargo clippy --all-targets --fix --allow-dirty --allow-staged
7 changes: 5 additions & 2 deletions tools/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

set -xe

cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged
cargo clippy --all-targets

cargo fmt --all
#cargo fmt --all

mdbook build
#mdbook test

0 comments on commit bec0fdb

Please sign in to comment.