ale/test/linter/test_hurlfmt.vader
Horacio Sanson 8f9197b79b
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
2024-03-12 09:51:49 +09:00

20 lines
558 B
Plaintext

Before:
call ale#assert#SetUpLinterTest('hurl', 'hurlfmt')
call ale#test#SetFilename('dummy.hurl')
let g:ale_ruby_hurlfmt_executable = 'hurlfmt'
let g:ale_ruby_hurlfmt_options = ''
After:
call ale#assert#TearDownLinterTest()
Execute(Executable should default to hurlfmt):
AssertLinter 'hurlfmt', ale#Escape('hurlfmt')
\ . ' --check --no-color '
Execute(Should be able to set a custom executable):
let g:ale_hurl_hurlfmt_executable = 'bin/hurlfmt'
AssertLinter 'bin/hurlfmt' , ale#Escape('bin/hurlfmt')
\ . ' --check --no-color '