mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
This is the last one. Just a few nits and we can now run clippy on all crates. BUG=b:192373803 TEST=./tools/presubmit Change-Id: I93ad9ce3b1cf0718bda8588279d7e1a891a0a6f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3439052 Reviewed-by: Noah Gold <nkgold@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com>
30 lines
728 B
Bash
Executable file
30 lines
728 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright 2019 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# To check for violations:
|
|
# $ ./tools/clippy
|
|
#
|
|
# To fix violations where possible:
|
|
# $ ./tools/clippy --fix
|
|
|
|
set -e
|
|
cd "$(dirname $0)/.."
|
|
|
|
# Note: Clippy checks are configured in .cargo/config.toml
|
|
echo "Clippy crosvm workspace"
|
|
cargo clippy \
|
|
--workspace \
|
|
--features all-linux \
|
|
--all-targets \
|
|
"$@" -- -Dwarnings
|
|
|
|
for crate in common/*; do
|
|
if [ -d "${crate}" ]; then
|
|
echo ""
|
|
echo "Clippy ${crate}"
|
|
(cd "${crate}" &&
|
|
cargo clippy --all-targets --all-features "$@" -- -Dwarnings)
|
|
fi
|
|
done
|