mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-27 12:02:26 +08:00
Implement Lua ALE setup & overhaul documentation
1. Add ale.setup and ale.setup.buffer for pure Lua configuration. 2. Update many global settings to use Booleans instead of numbers to make types easiert to work with in Lua. 3. Radically reformat documentation and fix errors to make documentation more usable for Neovim users.
This commit is contained in:
@@ -11,8 +11,11 @@ See |ale-cspell-options|
|
||||
===============================================================================
|
||||
powershell *ale-powershell-powershell*
|
||||
|
||||
g:ale_powershell_powershell_executable *g:ale_powershell_powershell_executable*
|
||||
*ale-options.powershell_powershell_executable*
|
||||
*g:ale_powershell_powershell_executable*
|
||||
*b:ale_powershell_powershell_executable*
|
||||
powershell_powershell_executable
|
||||
g:ale_powershell_powershell_executable
|
||||
Type: |String|
|
||||
Default: `'pwsh'`
|
||||
|
||||
@@ -26,15 +29,21 @@ g:ale_powershell_powershell_executable *g:ale_powershell_powershell_executable*
|
||||
===============================================================================
|
||||
psscriptanalyzer *ale-powershell-psscriptanalyzer*
|
||||
|
||||
Installation
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
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*
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Options
|
||||
*ale-options.powershell_psscriptanalyzer_executable*
|
||||
*g:ale_powershell_psscriptanalyzer_executable*
|
||||
*b:ale_powershell_psscriptanalyzer_executable*
|
||||
powershell_psscriptanalyzer_executable
|
||||
g:ale_powershell_psscriptanalyzer_executable
|
||||
Type: |String|
|
||||
Default: `'pwsh'`
|
||||
|
||||
@@ -45,27 +54,29 @@ g:ale_powershell_psscriptanalyzer_executable
|
||||
let g:ale_powershell_psscriptanalyzer_executable = 'powershell.exe'
|
||||
<
|
||||
|
||||
g:ale_powershell_psscriptanalyzer_module
|
||||
*g:ale_powershell_psscriptanalyzer_module*
|
||||
*ale-options.powershell_psscriptanalyzer_module*
|
||||
*g:ale_powershell_psscriptanalyzer_module*
|
||||
*b:ale_powershell_psscriptanalyzer_module*
|
||||
Type: |String
|
||||
powershell_psscriptanalyzer_module
|
||||
g:ale_powershell_psscriptanalyzer_module
|
||||
Type: |String|
|
||||
Default: `'psscriptanalyzer'`
|
||||
|
||||
This variable sets the name of the psscriptanalyzer module.
|
||||
for psscriptanalyzer invocation.
|
||||
|
||||
|
||||
g:ale_powershell_psscriptanalyzer_exclusions
|
||||
*g:ale_powershell_psscriptanalyzer_exclusions*
|
||||
*ale-options.powershell_psscriptanalyzer_exclusions*
|
||||
*g:ale_powershell_psscriptanalyzer_exclusions*
|
||||
*b:ale_powershell_psscriptanalyzer_exclusions*
|
||||
powershell_psscriptanalyzer_exclusions
|
||||
g: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.
|
||||
commas. >
|
||||
|
||||
>
|
||||
" Suppress Write-Host and Global vars warnings
|
||||
let g:ale_powershell_psscriptanalyzer_exclusions =
|
||||
\ 'PSAvoidUsingWriteHost,PSAvoidGlobalVars'
|
||||
|
||||
Reference in New Issue
Block a user