fix vale option (#5086)

This commit is contained in:
yoan667
2026-01-25 08:30:53 +01:00
committed by GitHub
parent d59cb7b3c2
commit 646d956630
3 changed files with 60 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
Before:
call ale#assert#SetUpLinterTest('text', 'vale')
After:
call ale#assert#TearDownLinterTest()
Execute(The Vale command should include extra options when configured):
let g:ale_vale_executable = 'vale'
let g:ale_vale_options = '--minAlertLevel=warning'
AssertLinter 'vale', ale#Escape('vale') . ' --minAlertLevel=warning --output=JSON %t'
Execute(The Vale command should not include extra options by default):
let g:ale_vale_executable = 'vale'
let g:ale_vale_options = ''
AssertLinter 'vale', ale#Escape('vale') . ' --output=JSON %t'