22 lines
523 B
PowerShell
22 lines
523 B
PowerShell
# SPDX-FileCopyrightText: 2026 amurcanov
|
|
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
Push-Location $PSScriptRoot
|
|
try {
|
|
& cargo clippy --bin client -- `
|
|
-D clippy::unwrap_used `
|
|
-D clippy::expect_used `
|
|
-D clippy::panic `
|
|
-D clippy::unreachable `
|
|
-D clippy::todo `
|
|
-D clippy::unimplemented
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
} finally {
|
|
Pop-Location
|
|
}
|
|
|
|
Write-Output "Runtime panic lint passed"
|