tools/CustomLinter.ps1
Get-ChildItem -Recurse $PSScriptRoot\.. | ? Extension -in (".ps1", ".cs") | ? Attributes -notlike "Directory" | % { $file = $_ $i = 0 Get-Content $file | % { $i++ if ($_.Length -ge 100) { "Line $i in file $($file.Name) is longer than 100" | Out-Host $_ | Out-Host } } } Invoke-ScriptAnalyzer -Path $PSScriptRoot\..\ -Recurse ` -Settings $PSScriptRoot\ScriptAnalyzerProfile.psd1 |