Add pslint sanity test. (#35303)

* Add pslint sanity test.

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

* Add docs for `pslint` sanity test.
This commit is contained in:
Matt Clay 2018-01-24 17:22:14 -08:00 committed by Matt Davis
commit e0010f15e4
7 changed files with 391 additions and 1 deletions

14
test/sanity/pslint/pslint.ps1 Executable file
View file

@ -0,0 +1,14 @@
#!/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