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

Feature: PowerShell checker #2206

@whitedwarfsun

Description

@whitedwarfsun

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions