Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Feature: PowerShell checker #2206

Open
whitedwarfsun opened this issue Aug 10, 2018 · 0 comments
Open

Feature: PowerShell checker #2206

whitedwarfsun opened this issue Aug 10, 2018 · 0 comments

Comments

@whitedwarfsun
Copy link

It would be nice to have a checker for PowerShell.

Ingredients:

Presumable requirements:

Current working (!) setup:
With

au FileType ps1 let &makeprg="cd /mnt/c && powershell.exe 'Invoke-ScriptAnalyzer " . substitute(expand("%:p"), "/mnt/c/", "C:\\", "") . ' -EA SilentlyContinue \| ForEach-Object { (\"/mnt/c$((Split-Path -NoQualifier $_.ScriptPath) -replace \"\\\\\", \"/\")\", $_.Line, $_.Column, $_.Severity.ToString()[0], \"[$($_.RuleName)] $($_.Message)$(If ($_.SuggestedCorrections.Description) { \" FIX: $($_.SuggestedCorrections.Description)\" })\") -join \":\"}' . "'"
au FileType ps1 set errorformat=%f:%l:%c:%t:%m

, I am able to execute :make and will get my quickfix list filled.

Unfortunately, I have no deep insights into checkers and will not be able to get them in the near future. When someone is willing to write this up, I can assist in testing for sure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants