diff --git a/tools/clippy.sh b/tools/clippy.sh new file mode 100755 index 00000000..4d8cb124 --- /dev/null +++ b/tools/clippy.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Copyright (c) 2024 Xu Shaohua . 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 diff --git a/tools/pre-commit b/tools/pre-commit index 7721b4cb..a3a18e99 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -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