mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
ci: enable Clippy warnings as errors in linting step
- Updated the Clippy command in both `ci.ps1` and `ci.sh` to include the `-D warnings` flag, ensuring that all warnings are treated as errors during the linting process. This change enhances code quality by enforcing stricter linting rules.
This commit is contained in:
parent
7289f51e83
commit
3c87b408cc
2 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ Record-Result "Selene" $selene
|
||||||
Write-Step 6 "Rust Linting (Clippy) - Auto-fix"
|
Write-Step 6 "Rust Linting (Clippy) - Auto-fix"
|
||||||
cargo clippy -j $BuildThreads --fix --allow-dirty --allow-staged 2>&1 | Out-Null
|
cargo clippy -j $BuildThreads --fix --allow-dirty --allow-staged 2>&1 | Out-Null
|
||||||
Write-Host "Verifying..." -ForegroundColor Yellow
|
Write-Host "Verifying..." -ForegroundColor Yellow
|
||||||
cargo clippy -j $BuildThreads --all-targets --all-features 2>&1
|
cargo clippy -j $BuildThreads --all-targets --all-features -- -D warnings 2>&1
|
||||||
$clippy = $LASTEXITCODE
|
$clippy = $LASTEXITCODE
|
||||||
Record-Result "Clippy" $clippy
|
Record-Result "Clippy" $clippy
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ record "Selene" $selene_exit
|
||||||
step 6 "Rust Linting (Clippy) - Auto-fix"
|
step 6 "Rust Linting (Clippy) - Auto-fix"
|
||||||
cargo clippy -j $BUILD_THREADS --fix --allow-dirty --allow-staged >/dev/null 2>&1
|
cargo clippy -j $BUILD_THREADS --fix --allow-dirty --allow-staged >/dev/null 2>&1
|
||||||
echo "Verifying..."
|
echo "Verifying..."
|
||||||
cargo clippy -j $BUILD_THREADS --all-targets --all-features 2>&1
|
cargo clippy -j $BUILD_THREADS --all-targets --all-features -- -D warnings 2>&1
|
||||||
clippy_exit=$?
|
clippy_exit=$?
|
||||||
record "Clippy" $clippy_exit
|
record "Clippy" $clippy_exit
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue