Skip to content

Commit

Permalink
Makefile: changed Rust lint clippy to the one included in SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsterckx committed Feb 28, 2023
1 parent 6e59a2a commit 4c0148c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,21 @@ rc=0
export VARIANT="${BUILDSYS_VARIANT}"
# For rust first-party source code
if ! cargo clippy \
--manifest-path ${BUILDSYS_TOOLS_DIR}/Cargo.toml \
if ! docker run --rm \
-v "$(pwd)":/tmp \
"${BUILDSYS_SDK_IMAGE}" \
cargo clippy \
--manifest-path /tmp/tools/Cargo.toml \
--locked -- -D warnings --no-deps; then
rc=1
fi
if ! cargo clippy \
--manifest-path ${BUILDSYS_SOURCES_DIR}/Cargo.toml \
if ! docker run --rm \
-v "$(pwd)":/tmp \
-e VARIANT \
"${BUILDSYS_SDK_IMAGE}" \
cargo clippy \
--manifest-path /tmp/sources/Cargo.toml \
--locked -- -D warnings --no-deps; then
rc=1
fi
Expand Down

0 comments on commit 4c0148c

Please sign in to comment.