mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Fix 4740 - add hurlfmt linter (#4741)
* Fix 4740 - add hurlfmt linter * Fix 4740 - add hurlfmt fixer * Fix wrong comments * Add end_col to qflist * Fix test
This commit is contained in:
23
test/fixers/test_hurlfmt_fixer_callback.vader
Normal file
23
test/fixers/test_hurlfmt_fixer_callback.vader
Normal file
@@ -0,0 +1,23 @@
|
||||
Before:
|
||||
Save g:ale_hurl_hurlfmt_executable
|
||||
|
||||
" Use an invalid global executable, so we don't match it.
|
||||
let g:ale_hurl_hurlfmt_executable = 'xxxinvalid'
|
||||
|
||||
call ale#test#SetDirectory('/testplugin/test/fixers')
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
|
||||
Execute(The hurlfmt callback should return the correct default values):
|
||||
call ale#test#SetFilename('../test-files/hurl/dummy.hurl')
|
||||
|
||||
AssertEqual
|
||||
\ {
|
||||
\ 'command': ale#Escape(g:ale_hurl_hurlfmt_executable)
|
||||
\ . ' --out hurl',
|
||||
\ },
|
||||
\ ale#fixers#hurlfmt#Fix(bufnr(''))
|
||||
|
||||
Reference in New Issue
Block a user