Initial public release of Warp.

Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
David Stern
2026-04-28 08:43:33 -05:00
commit 0dbd3d567a
4982 changed files with 1431549 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/env -S pwsh -NoProfile
param(
[switch]$ci,
[switch]$fix
)
$rulesFile = './.PSScriptAnalyzerSettings.psd1'
$sources = @(
'./app/assets/bundled/bootstrap/',
'./script/windows/'
)
foreach ($source in $sources) {
Write-Output "Inspecting scripts in '$source'"
$scriptAnalyzerParams = @{
Settings = $rulesFile
Path = $source
ReportSummary = $true
Recurse = $true
Fix = $fix
}
$results = Invoke-ScriptAnalyzer @scriptAnalyzerParams
Write-Output $results
$errorsAndWarnings = $results | Where-Object { $_.Severity -ge [Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticSeverity]::Warning }
$problemCount = ($errorsAndWarnings | Measure-Object).Count
if ($problemCount -gt 0 -and $ci) {
throw "Lint failed with $problemCount problems"
}
}