2019-03-29 15:25:55 +00:00
|
|
|
===============================================================================
|
|
|
|
ALE PowerShell Integration *ale-powershell-options*
|
|
|
|
|
|
|
|
|
2021-11-18 22:41:05 +00:00
|
|
|
===============================================================================
|
|
|
|
cspell *ale-powershell-cspell*
|
|
|
|
|
|
|
|
See |ale-cspell-options|
|
|
|
|
|
|
|
|
|
2019-04-13 11:24:56 +00:00
|
|
|
===============================================================================
|
|
|
|
powershell *ale-powershell-powershell*
|
|
|
|
|
2021-11-18 22:41:05 +00:00
|
|
|
g:ale_powershell_powershell_executable *g:ale_powershell_powershell_executable*
|
|
|
|
*b:ale_powershell_powershell_executable*
|
2022-10-29 11:56:47 +00:00
|
|
|
Type: |String|
|
2019-04-13 11:24:56 +00:00
|
|
|
Default: `'pwsh'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for powershell.
|
|
|
|
|
|
|
|
>
|
|
|
|
" Use powershell.exe rather than the default pwsh
|
|
|
|
let g:ale_powershell_powershell_executable = 'powershell.exe'
|
|
|
|
>
|
|
|
|
|
2019-03-29 15:25:55 +00:00
|
|
|
===============================================================================
|
|
|
|
psscriptanalyzer *ale-powershell-psscriptanalyzer*
|
|
|
|
|
|
|
|
Installation
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Install PSScriptAnalyzer by any means, so long as it can be automatically
|
|
|
|
imported in PowerShell.
|
|
|
|
|
|
|
|
g:ale_powershell_psscriptanalyzer_executable
|
|
|
|
*g:ale_powershell_psscriptanalyzer_executable*
|
|
|
|
*b:ale_powershell_psscriptanalyzer_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'pwsh'`
|
|
|
|
|
|
|
|
This variable sets executable used for powershell.
|
2021-11-18 22:41:05 +00:00
|
|
|
|
2019-03-29 15:25:55 +00:00
|
|
|
For example, on Windows you could set powershell to be Windows Powershell:
|
|
|
|
>
|
|
|
|
let g:ale_powershell_psscriptanalyzer_executable = 'powershell.exe'
|
|
|
|
<
|
|
|
|
|
|
|
|
g:ale_powershell_psscriptanalyzer_module
|
|
|
|
*g:ale_powershell_psscriptanalyzer_module*
|
|
|
|
*b:ale_powershell_psscriptanalyzer_module*
|
|
|
|
Type: |String
|
|
|
|
Default: `'psscriptanalyzer'`
|
|
|
|
|
|
|
|
This variable sets the name of the psscriptanalyzer module.
|
|
|
|
for psscriptanalyzer invocation.
|
|
|
|
|
|
|
|
|
2021-11-18 22:41:05 +00:00
|
|
|
g:ale_powershell_psscriptanalyzer_exclusions
|
2019-03-29 15:25:55 +00:00
|
|
|
*g:ale_powershell_psscriptanalyzer_exclusions*
|
|
|
|
*b:ale_powershell_psscriptanalyzer_exclusions*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
Set this variable to exclude test(s) for psscriptanalyzer
|
|
|
|
(-ExcludeRule option). To exclude more than one option, separate them with
|
|
|
|
commas.
|
|
|
|
|
|
|
|
>
|
|
|
|
" Suppress Write-Host and Global vars warnings
|
|
|
|
let g:ale_powershell_psscriptanalyzer_exclusions =
|
|
|
|
\ 'PSAvoidUsingWriteHost,PSAvoidGlobalVars'
|
|
|
|
<
|
|
|
|
|
|
|
|
===============================================================================
|
|
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|