ansible/test/sanity/pslint/pslint.ps1
Matt Clay e0010f15e4 Add pslint sanity test. (#35303)
* Add pslint sanity test.

* Fix `no-smart-quotes` sanity test.

* Add docs for `pslint` sanity test.
2018-01-24 17:22:14 -08:00

14 lines
272 B
PowerShell
Executable file

#!/usr/bin/env pwsh
#Requires -Version 6
#Requires -Modules PSScriptAnalyzer
Set-StrictMode -Version 2.0
$ErrorActionPreference = "Stop"
$Results = @()
ForEach ($Path in $Args) {
$Results += Invoke-ScriptAnalyzer -Path $Path
}
ConvertTo-Json -InputObject $Results